Skip to content

Commit 78a1e6b

Browse files
authored
Update broken book links (#1087)
1 parent 369d849 commit 78a1e6b

83 files changed

Lines changed: 115 additions & 115 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/en/advanced/integration-and-deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ the application code becomes active.
202202
After running migrations, remember to clear the ORM cache so it renews the
203203
column metadata of your tables. Otherwise, you might end up with errors about
204204
columns not existing when performing operations on those new columns. The
205-
CakePHP core includes a [Schema Cache Shell](https://book.cakephp.org/5/en/console-and-shells/schema-cache.html) that you can use:
205+
CakePHP core includes a [Schema Cache Shell](https://book.cakephp.org/5/console-commands/schema-cache.html) that you can use:
206206

207207
```bash
208208
bin/cake migrations migrate

docs/en/getting-started/creating-migrations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class CreateProducts extends BaseMigration
113113
* Change Method.
114114
*
115115
* More information on this method is available here:
116-
* https://book.cakephp.org/migrations/5/en/writing-migrations.html#the-change-method
116+
* https://book.cakephp.org/migrations/5/guides/writing-migrations/migration-methods.html#the-change-method
117117
* @return void
118118
*/
119119
public function change(): void

docs/en/guides/seeding.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class MyNewSeed extends BaseSeed
3131
* Write your database seed using this method.
3232
*
3333
* More information on writing seeds is available here:
34-
* https://book.cakephp.org/migrations/5/en/seeding.html
34+
* https://book.cakephp.org/migrations/5/guides/seeding.html
3535
*/
3636
public function run() : void
3737
{
@@ -88,7 +88,7 @@ return new class extends BaseSeed
8888
* Write your database seeder using this method.
8989
*
9090
* More information on writing seeds is available here:
91-
* https://book.cakephp.org/migrations/5/en/seeding.html
91+
* https://book.cakephp.org/migrations/5/guides/seeding.html
9292
*/
9393
public function run(): void
9494
{

src/Command/BakeMigrationCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function templateData(Arguments $arguments): array
9292
$action = $this->detectAction($className);
9393

9494
if (!$action && count($fields)) {
95-
$this->io->abort('When applying fields the migration name should start with one of the following prefixes: `Create`, `Drop`, `Add`, `Remove`, `Alter`. See: https://book.cakephp.org/migrations/5/en/index.html#migrations-file-name');
95+
$this->io->abort('When applying fields the migration name should start with one of the following prefixes: `Create`, `Drop`, `Add`, `Remove`, `Alter`. See: https://book.cakephp.org/migrations/5/getting-started/creating-migrations.html#migration-file-names');
9696
}
9797

9898
if (!$action) {

templates/bake/Seed/seed-anonymous.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ return new class extends BaseSeed
2626
* Write your database seeder using this method.
2727
*
2828
* More information on writing seeds is available here:
29-
* https://book.cakephp.org/migrations/5/en/seeding.html
29+
* https://book.cakephp.org/migrations/5/guides/seeding.html
3030
*
3131
* @return void
3232
*/

templates/bake/Seed/seed.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class {{ name }}Seed extends BaseSeed
2929
* Write your database seeder using this method.
3030
*
3131
* More information on writing seeds is available here:
32-
* https://book.cakephp.org/migrations/5/en/seeding.html
32+
* https://book.cakephp.org/migrations/5/guides/seeding.html
3333
*
3434
* @return void
3535
*/

templates/bake/config/diff.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class {{ name }} extends BaseMigration
3131
* Up Method.
3232
*
3333
* More information on this method is available here:
34-
* https://book.cakephp.org/migrations/5/en/migrations.html#the-up-method
34+
* https://book.cakephp.org/migrations/5/guides/writing-migrations/migration-methods.html#the-up-method
3535
*
3636
* @return void
3737
*/
@@ -118,7 +118,7 @@ not empty %}
118118
* Down Method.
119119
*
120120
* More information on this method is available here:
121-
* https://book.cakephp.org/migrations/5/en/migrations.html#the-down-method
121+
* https://book.cakephp.org/migrations/5/guides/writing-migrations/migration-methods.html#the-down-method
122122
*
123123
* @return void
124124
*/

templates/bake/config/skeleton-anonymous.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ return new class extends BaseMigration
3232
* Change Method.
3333
*
3434
* More information on this method is available here:
35-
* https://book.cakephp.org/migrations/5/en/migrations.html#the-change-method
35+
* https://book.cakephp.org/migrations/5/guides/writing-migrations/migration-methods.html#the-change-method
3636
* @return void
3737
*/
3838
public function change(): void

templates/bake/config/skeleton.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class {{ name }} extends BaseMigration
3232
* Change Method.
3333
*
3434
* More information on this method is available here:
35-
* https://book.cakephp.org/migrations/5/en/migrations.html#the-change-method
35+
* https://book.cakephp.org/migrations/5/guides/writing-migrations/migration-methods.html#the-change-method
3636
*
3737
* @return void
3838
*/

templates/bake/config/snapshot.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class {{ name }} extends BaseMigration
3535
* Change Method.
3636
*
3737
* More information on this method is available here:
38-
* https://book.cakephp.org/migrations/5/en/migrations.html#the-change-method
38+
* https://book.cakephp.org/migrations/5/guides/writing-migrations/migration-methods.html#the-change-method
3939
*
4040
* @return void
4141
*/
@@ -52,7 +52,7 @@ class {{ name }} extends BaseMigration
5252
* Up Method.
5353
*
5454
* More information on this method is available here:
55-
* https://book.cakephp.org/migrations/5/en/migrations.html#the-up-method
55+
* https://book.cakephp.org/migrations/5/guides/writing-migrations/migration-methods.html#the-up-method
5656
*
5757
* @return void
5858
*/
@@ -69,7 +69,7 @@ class {{ name }} extends BaseMigration
6969
* Down Method.
7070
*
7171
* More information on this method is available here:
72-
* https://book.cakephp.org/migrations/5/en/migrations.html#the-down-method
72+
* https://book.cakephp.org/migrations/5/guides/writing-migrations/migration-methods.html#the-down-method
7373
*
7474
* @return void
7575
*/

0 commit comments

Comments
 (0)