Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.x search upgrade preparation #536

Merged
merged 1 commit into from
Mar 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions docs/fr/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ localisé):

Pour utiliser le plugin, vous devrez le charger dans le fichier
**config/bootstrap.php** de votre application.
Vous pouvez utiliser :ref:`le shell de Plugin de CakePHP <https://book.cakephp.org/3.0/fr/console-and-shells/plugin-shell.html>` pour
Vous pouvez utiliser `le shell de Plugin de CakePHP
<https://book.cakephp.org/3.0/fr/console-and-shells/plugin-shell.html>`__ pour
charger et décharger les plugins de votre **config/bootstrap.php**:

.. code-block:: bash
Expand All @@ -45,7 +46,8 @@ Ou vous pouvez charger le plugin en modifiant votre fichier

De plus, vous devrez configurer la base de données par défaut pour votre
application dans le fichier **config/app.php** comme expliqué dans la section
sur la :ref:`configuration des bases de données <https://book.cakephp.org/3.0/fr/orm/database-basics.html#database-configuration>`.
sur la `configuration des bases de données
<https://book.cakephp.org/3.0/fr/orm/database-basics.html#database-configuration>`__.

Vue d'ensemble
==============
Expand Down Expand Up @@ -142,7 +144,7 @@ Voici quelques exemples de noms de fichiers de migration:
* 20160210133047_AddRatingToProducts.php

La meilleure façon de créer un fichier de migration est d'utiliser la ligne de
commande :doc:`/bake/usage`.
commande ``bin/cake bake migration``.

Assurez-vous de bien lire la `documentation officielle de Phinx <https://book.cakephp.org/phinx/0/en/migrations.html>`_ afin de connaître la liste
complète des méthodes que vous pouvez utiliser dans l'écriture des fichiers de
Expand Down Expand Up @@ -722,6 +724,7 @@ En ce qui concerne migrations, une interface ``bake`` est fournie pour les
fichiers de seed:

.. code-block:: bash

# Ceci va créer un fichier ArticlesSeed.php dans le répertoire config/Seeds
# de votre application
# Par défaut, la table que le seed va essayer de modifier est la version
Expand Down Expand Up @@ -1128,17 +1131,17 @@ vider le cache de l'ORM pour qu'il renouvelle les _metadata_ des colonnes de vos
tables.
Autrement, vous pourrez rencontrer des erreurs de colonnes inexistantes quand
vous effectuerez des opérations sur vos nouvelles colonnes.
Le Core de CakePHP inclut un
:doc:`Shell de Cache du Schéma <https://book.cakephp.org/3.0/fr/console-and-shells/schema-cache.html>` que vous pouvez
Le Core de CakePHP inclut un `Shell de Cache du Schéma
<https://book.cakephp.org/3.0/fr/console-and-shells/schema-cache.html>`__ que vous pouvez
utilisez pour vider le cache:

.. code-block:: bash

// Avant 3.6, utilisez orm_cache
bin/cake schema_cache clear

Veuillez vous référer à la section du cookbook à propos du
:doc:`Shell du Cache du Schéma <https://book.cakephp.org/3.0/fr/console-and-shells/schema-cache.html>` si vous voulez
Veuillez vous référer à la section du cookbook à propos du `Shell du Cache du Schéma
<https://book.cakephp.org/3.0/fr/console-and-shells/schema-cache.html>`__ si vous voulez
plus de détails à propos de ce shell.

Renommer une table
Expand Down
12 changes: 7 additions & 5 deletions docs/ja/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ Migrations

このプラグインを使用するためには、あなたは、アプリケーションの **config/bootstrap.php**
ファイルでロードする必要があります。あなたの **config/bootstrap.php** からプラグインを
ロード・アンロードするために :ref:`CakePHP の Plugin シェル <https://book.cakephp.org/3.0/ja/console-and-shells/plugin-shell.html>`
ロード・アンロードするために `CakePHP の Plugin シェル
<https://book.cakephp.org/3.0/ja/console-and-shells/plugin-shell.html>`__
が利用できます。 :

.. code-block:: bash
Expand All @@ -43,7 +44,8 @@ Migrations

// 3.6.0 より前は Plugin::load() を使用する必要があります

また、 :ref:`データベース設定 <https://book.cakephp.org/3.0/en/orm/database-basics.html#database-configuration>` の項で説明したように、
また、 `データベース設定
<https://book.cakephp.org/3.0/en/orm/database-basics.html#database-configuration>`__ の項で説明したように、
あなたの **config/app.php** ファイル内のデフォルトのデータベース構成を設定する必要が
あります。

Expand Down Expand Up @@ -1005,16 +1007,16 @@ Table オブジェクトのレジストリーは、 ``update()`` が呼ばれた
もし、アプリケーションをデプロイする時にプラグインを使用する場合、
テーブルのカラムメタデータを更新するように、必ず ORM キャッシュをクリアしてください。
そうしなければ、それらの新しいカラムの操作を実行する時に、カラムが存在しないエラーになります。
CakePHP コアは、この操作を行うために使用できる :doc:`スキーマキャッシュシェル
<https://book.cakephp.org/3.0/ja/console-and-shells/schema-cache.html>` を含みます。 :
CakePHP コアは、この操作を行うために使用できる `スキーマキャッシュシェル
<https://book.cakephp.org/3.0/ja/console-and-shells/schema-cache.html>`__ を含みます。 :

.. code-block:: bash

// 3.6.0 より前の場合、orm_cache を使用
bin/cake schema_cache clear

このシェルについてもっと知りたい場合、クックブックの
:doc:`スキーマキャッシュシェル <https://book.cakephp.org/3.0/ja/console-and-shells/schema-cache.html>`
`スキーマキャッシュシェル <https://book.cakephp.org/3.0/ja/console-and-shells/schema-cache.html>`__
セクションをご覧ください。

テーブルのリネーム
Expand Down
13 changes: 8 additions & 5 deletions docs/pt/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ diretório **ROOT** da sua aplicação

Para usar o plugin você precisa carregá-lo no arquivo **config/bootstrap.php**
da sua aplicação. Você pode usar o
:ref:`shell de plugins do CakePHP <https://book.cakephp.org/3.0/pt/console-and-shells/plugin-shell.html>` para carregar e descarregar
`shell de plugins do CakePHP
<https://book.cakephp.org/3.0/pt/console-and-shells/plugin-shell.html>`__ para carregar e descarregar
plugins do seu arquivo **config/bootstrap.php**::

$ bin/cake plugin load Migrations
Expand All @@ -42,7 +43,7 @@ adicionando a linha::

Adicionalmente, você precisará configurar o banco de dados padrão da sua
aplicação, no arquivo **config/app.php** como explicado na seção
:ref:`Configuração de banco de dados <https://book.cakephp.org/3.0/pt/orm/database-basics.html#database-configuration>`.
`Configuração de banco de dados <https://book.cakephp.org/3.0/pt/orm/database-basics.html#database-configuration>`__.

Visão Geral
===========
Expand Down Expand Up @@ -133,7 +134,7 @@ estão exemplos de arquivos de migração:
* 20160210133047_AddRatingToProducts.php

A maneira mais fácil de criar um arquivo de migrações é usando o
:doc:`/bake/usage` a linha de comando.
``bin/cake bake migration`` a linha de comando.

Por favor, leia a `documentação do Phinx <https://book.cakephp.org/phinx/0/en/migrations.html>`
a fim de conhecer a lista completa dos métodos que você pode usar para escrever
Expand Down Expand Up @@ -931,10 +932,12 @@ Se você usa o plugin ao fazer o **deploy** de sua aplicação, garanta que o ca
ORM seja limpo para renovar os metadados das colunas de suas tabelas.
Caso contrário, você pode acabar recebendo erros relativos a colunas
inexistentes ao criar operações nessas mesmas colunas.
O **core** do CakePHP possui uma :doc:`Schema Cache Shell <https://book.cakephp.org/3.0/en/console-and-shells/schema-cache.html>`
O **core** do CakePHP possui uma
`Schema Cache Shell <https://book.cakephp.org/3.0/en/console-and-shells/schema-cache.html>`__
que você pode usar para realizar essas operação::

$ bin/cake schema_cache clear

Leia a seção :doc:`Schema Cache Shell <https://book.cakephp.org/3.0/en/console-and-shells/schema-cache.html>` do cookbook
Leia a seção `Schema Cache Shell
<https://book.cakephp.org/3.0/en/console-and-shells/schema-cache.html>`__ do cookbook
se você quiser conhecer mais sobre essa **shell**.
14 changes: 9 additions & 5 deletions docs/ru/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@

Чтобы использовать плагин, вам нужно загрузить его в файле **config/bootstrap.php**
вашего приложения. Вы можете использовать
:ref:`CakePHP's Plugin shell <https://book.cakephp.org/3.0/ru/console-and-shells/plugin-shell.html>` для загрузки и выгрузки плагинов из
`CakePHP's Plugin shell
<https://book.cakephp.org/3.0/ru/console-and-shells/plugin-shell.html>`__ для загрузки и выгрузки плагинов из
вашего **config/bootstrap.php**::

$ bin/cake plugin load Migrations
Expand All @@ -40,7 +41,8 @@

Кроме того, вам нужно будет настроить конфигурацию базы данных по умолчанию для вашего
приложения в файле **config/app.php**, как описано в
:ref:`Раздел о конфигурации БД <https://book.cakephp.org/3.0/ru/orm/database-basics.html#database-configuration>`.
`Раздел о конфигурации БД
<https://book.cakephp.org/3.0/ru/orm/database-basics.html#database-configuration>`__.

Обзор
=====
Expand Down Expand Up @@ -131,7 +133,7 @@
* 20160210133047_AddRatingToProducts.php

Самый простой способ создать файл миграции - это использовать команду CLI
:doc:`/bake/usage`.
``bin/cake bake migration``.

Пожалуйста, убедитесь, что вы читали официальную
`Phinx documentation <https://book.cakephp.org/phinx/0/en/migrations.html>`_
Expand Down Expand Up @@ -977,12 +979,14 @@ unsigned или not, limit, comment и т.д.
кэш ORM, чтобы он обновил метаданные столбца ваших таблиц. В противном случае
вы можете столкнуться с ошибками в отношении столбцов, которые не существуют
при выполнении операций над этими новыми столбцами.
Ядро CakePHP включает :doc:`Schema Cache Shell <https://book.cakephp.org/3.0/ru/console-and-shells/schema-cache.html>`
Ядро CakePHP включает `Schema Cache Shell
<https://book.cakephp.org/3.0/ru/console-and-shells/schema-cache.html>`__
который вы можете использовать для выполнения этой операции::

$ bin/cake schema_cache clear

Обязательно прочитайте раздел :doc:`Schema Cache Shell <https://book.cakephp.org/3.0/ru/console-and-shells/schema-cache.html>`,
Обязательно прочитайте раздел `Schema Cache Shell
<https://book.cakephp.org/3.0/ru/console-and-shells/schema-cache.html>`__,
если вы хотите узнать больше об этой оболочке.

Переименование таблицы
Expand Down