[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>
Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2022-03-08 15:07:37 +03:00
коммит произвёл GitHub
родитель 4da27d8e30
Коммит e49cc0313a
15 изменённых файлов: 632 добавлений и 50 удалений

Просмотреть файл

@@ -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)
);