Skip to content

Commit 8d535a7

Browse files
committed
Merge branch 'releases' of https://github.com/ibexa/documentation-developer into releases
2 parents c51f355 + a76f09e commit 8d535a7

File tree

2 files changed

+123
-0
lines changed

2 files changed

+123
-0
lines changed

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

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,3 +600,41 @@ To use the [latest features](ibexa_dxp_v4.6.md) added to them, update them separ
600600
No additional steps needed.
601601

602602
## v4.6.24
603+
604+
### Database update
605+
606+
=== "MySQL"
607+
608+
``` bash
609+
mysql -u <username> -p <password> <database_name> < vendor/ibexa/installer/upgrade/db/mysql/ibexa-4.6.23-to-4.6.24.sql
610+
```
611+
612+
=== "PostgreSQL"
613+
614+
``` bash
615+
psql <database_name> < vendor/ibexa/installer/upgrade/db/postgresql/ibexa-4.6.23-to-4.6.24.sql
616+
```
617+
618+
For Commerce having the [Discounts LTS Update](discounts_guide.md) already installed, run this additional update queries:
619+
620+
=== "MySQL"
621+
622+
``` sql
623+
ALTER TABLE ibexa_discount
624+
ADD indexed_at DATETIME DEFAULT NULL COMMENT '(DC2Type:datetime_immutable)';
625+
626+
CREATE INDEX ibexa_discount_indexed_at_idx
627+
ON ibexa_discount (indexed_at);
628+
```
629+
630+
=== "PostgreSQL"
631+
632+
``` sql
633+
ALTER TABLE ibexa_discount
634+
ADD indexed_at TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL;
635+
636+
COMMENT ON COLUMN ibexa_discount.indexed_at IS '(DC2Type:datetime_immutable)';
637+
638+
CREATE INDEX ibexa_discount_indexed_at_idx
639+
ON ibexa_discount (indexed_at);
640+
```

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

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,88 @@ Some packages increase their type hinting strictness.
4343
You can run [Ibexa DXP Rector](https://github.com/ibexa/rector/blob/v5.0.1/README.md) to update your code.
4444

4545
## v5.0.2
46+
47+
### Database update
48+
49+
=== "MySQL"
50+
51+
``` sql
52+
CREATE TABLE ibexa_messenger_messages (
53+
id BIGINT AUTO_INCREMENT NOT NULL,
54+
body LONGTEXT NOT NULL,
55+
headers LONGTEXT NOT NULL,
56+
queue_name VARCHAR(190) NOT NULL,
57+
created_at DATETIME NOT NULL COMMENT '(DC2Type:datetime_immutable)',
58+
available_at DATETIME NOT NULL COMMENT '(DC2Type:datetime_immutable)',
59+
delivered_at DATETIME DEFAULT NULL COMMENT '(DC2Type:datetime_immutable)',
60+
INDEX ibexa_messenger_created_at_idx (created_at),
61+
INDEX ibexa_messenger_available_at_idx (available_at),
62+
INDEX ibexa_messenger_delivered_at_idx (delivered_at),
63+
PRIMARY KEY(id)
64+
) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB;
65+
66+
CREATE TABLE ibexa_messenger_lock_keys (
67+
key_id VARCHAR(64) NOT NULL,
68+
key_token VARCHAR(44) NOT NULL,
69+
key_expiration INT UNSIGNED NOT NULL,
70+
PRIMARY KEY(key_id)
71+
) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB;
72+
```
73+
74+
=== "PostgreSQL"
75+
76+
``` bash
77+
CREATE TABLE ibexa_messenger_messages (
78+
id BIGSERIAL NOT NULL,
79+
body TEXT NOT NULL,
80+
headers TEXT NOT NULL,
81+
queue_name VARCHAR(190) NOT NULL,
82+
created_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL,
83+
available_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL,
84+
delivered_at TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL,
85+
PRIMARY KEY(id)
86+
);
87+
88+
CREATE INDEX ibexa_messenger_created_at_idx ON ibexa_messenger_messages (created_at);
89+
90+
CREATE INDEX ibexa_messenger_available_at_idx ON ibexa_messenger_messages (available_at);
91+
92+
CREATE INDEX ibexa_messenger_delivered_at_idx ON ibexa_messenger_messages (delivered_at);
93+
94+
COMMENT ON COLUMN ibexa_messenger_messages.created_at IS '(DC2Type:datetime_immutable)';
95+
96+
COMMENT ON COLUMN ibexa_messenger_messages.available_at IS '(DC2Type:datetime_immutable)';
97+
98+
COMMENT ON COLUMN ibexa_messenger_messages.delivered_at IS '(DC2Type:datetime_immutable)';
99+
100+
CREATE TABLE ibexa_messenger_lock_keys (
101+
key_id VARCHAR(64) NOT NULL,
102+
key_token VARCHAR(44) NOT NULL,
103+
key_expiration INT NOT NULL,
104+
PRIMARY KEY(key_id)
105+
);
106+
```
107+
108+
On Commerce, run this additional update queries:
109+
110+
=== "MySQL"
111+
112+
``` sql
113+
ALTER TABLE ibexa_discount
114+
ADD indexed_at DATETIME DEFAULT NULL COMMENT '(DC2Type:datetime_immutable)';
115+
116+
CREATE INDEX ibexa_discount_indexed_at_idx
117+
ON ibexa_discount (indexed_at);
118+
```
119+
120+
=== "PostgreSQL"
121+
122+
``` sql
123+
ALTER TABLE ibexa_discount
124+
ADD indexed_at TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL;
125+
126+
COMMENT ON COLUMN ibexa_discount.indexed_at IS '(DC2Type:datetime_immutable)';
127+
128+
CREATE INDEX ibexa_discount_indexed_at_idx
129+
ON ibexa_discount (indexed_at);
130+
```

0 commit comments

Comments
 (0)