Skip to content

Commit 8bca48a

Browse files
julitafalconduszadabrt
authored andcommitted
update: links added instead of inline
1 parent 4b567f7 commit 8bca48a

File tree

2 files changed

+12
-20
lines changed

2 files changed

+12
-20
lines changed

docs/update_and_migration/from_4.6/update_from_4.6.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -442,19 +442,15 @@ Run the provided SQL upgrade script to add the missing indexes to your database:
442442

443443
=== "MySQL"
444444

445-
``` sql
446-
ALTER TABLE `ezform_form_submissions` ADD INDEX `ibexa_form_fs_cid_lc` (`content_id`, `language_code`);
447-
ALTER TABLE `ezform_form_submissions` ADD INDEX `ibexa_form_fs_cid_lc_cr_id_uid` (`content_id`, `language_code`, `created`, `user_id`);
448-
ALTER TABLE `ezform_form_submission_data` ADD INDEX `ibexa_form_fsd_si` (`form_submission_id`);
449-
```
445+
``` bash
446+
mysql -u <username> -p <password> <database_name> < vendor/ibexa/installer/upgrade/db/mysql/ibexa-4.6.24-to-4.6.25.sql
447+
```
450448

451449
=== "PostgreSQL"
452450

453-
``` sql
454-
CREATE INDEX "ibexa_form_fs_cid_lc" ON "ezform_form_submissions" ("content_id", "language_code");
455-
CREATE INDEX "ibexa_form_fs_cid_lc_cr_id_uid" ON "ezform_form_submissions" ("content_id", "language_code", "created", "user_id");
456-
CREATE INDEX "ibexa_form_fsd_si" ON "ezform_form_submission_data" ("form_submission_id");
457-
```
451+
``` bash
452+
psql <database_name> < vendor/ibexa/installer/upgrade/db/postgresql/ibexa-4.6.24-to-4.6.25.sql
453+
```
458454

459455
## LTS Updates
460456

docs/update_and_migration/from_5.0/update_from_5.0.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -140,16 +140,12 @@ Run the provided SQL upgrade script to add the missing indexes to your database:
140140

141141
=== "MySQL"
142142

143-
``` sql
144-
ALTER TABLE `ezform_form_submissions` ADD INDEX `ibexa_form_fs_cid_lc` (`content_id`, `language_code`);
145-
ALTER TABLE `ezform_form_submissions` ADD INDEX `ibexa_form_fs_cid_lc_cr_id_uid` (`content_id`, `language_code`, `created`, `user_id`);
146-
ALTER TABLE `ezform_form_submission_data` ADD INDEX `ibexa_form_fsd_si` (`form_submission_id`);
147-
```
143+
``` sql
144+
mysql -u <username> -p <password> <database_name> < vendor/ibexa/installer/upgrade/db/mysql/ibexa-5.0.2-to-5.0.3.sql
145+
```
148146

149147
=== "PostgreSQL"
150148

151-
``` sql
152-
CREATE INDEX "ibexa_form_fs_cid_lc" ON "ezform_form_submissions" ("content_id", "language_code");
153-
CREATE INDEX "ibexa_form_fs_cid_lc_cr_id_uid" ON "ezform_form_submissions" ("content_id", "language_code", "created", "user_id");
154-
CREATE INDEX "ibexa_form_fsd_si" ON "ezform_form_submission_data" ("form_submission_id");
155-
```
149+
``` sql
150+
psql <database_name> < vendor/ibexa/installer/upgrade/db/postgresql/ibexa-5.0.2-to-5.0.3.sql
151+
```

0 commit comments

Comments
 (0)