[MM-42167] Add configuration tables to migration system (#19671)
* add configuration tables to migration system * config: move config migrations into new system completely * add mysql specific bits * use helper db instance instead * fix typo Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4da27d8e30
Коммит
e49cc0313a
@@ -0,0 +1 @@
|
||||
-- It is intentionally to not have a rollback for adding configurations table.
|
||||
@@ -0,0 +1,8 @@
|
||||
CREATE TABLE IF NOT EXISTS configurations (
|
||||
id varchar(26),
|
||||
value text NOT NULL,
|
||||
createat bigint NOT NULL,
|
||||
active boolean DEFAULT NULL,
|
||||
PRIMARY KEY (id),
|
||||
UNIQUE (active)
|
||||
);
|
||||
@@ -0,0 +1 @@
|
||||
-- It is intentionally to not have a rollback for adding configuration files table.
|
||||
@@ -0,0 +1,7 @@
|
||||
CREATE TABLE IF NOT EXISTS configurationfiles (
|
||||
name VARCHAR(64),
|
||||
data text NOT NULL,
|
||||
createat bigint NOT NULL,
|
||||
updateat bigint NOT NULL,
|
||||
PRIMARY KEY (name)
|
||||
);
|
||||
Ссылка в новой задаче
Block a user