From cf92550de4d29481a84da30f41ac9f750e4009a7 Mon Sep 17 00:00:00 2001 From: eikek Date: Mon, 10 Jan 2022 15:28:02 +0100 Subject: [PATCH] Fix mariadb migration --- .../mariadb/V1.30.0__clientsettings_collective.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/store/src/main/resources/db/migration/mariadb/V1.30.0__clientsettings_collective.sql b/modules/store/src/main/resources/db/migration/mariadb/V1.30.0__clientsettings_collective.sql index 6a7faa35..d0563042 100644 --- a/modules/store/src/main/resources/db/migration/mariadb/V1.30.0__clientsettings_collective.sql +++ b/modules/store/src/main/resources/db/migration/mariadb/V1.30.0__clientsettings_collective.sql @@ -1,10 +1,10 @@ RENAME TABLE `client_settings` TO `client_settings_user`; -CREATE TABLE `client_settings` ( +CREATE TABLE `client_settings_collective` ( `id` varchar(254) not null primary key, + `client_id` varchar(254) not null, `cid` varchar(254) not null, - `user_id` varchar(254) not null, - `settings_data` longtext not null, + `settings_data` text not null, `created` timestamp not null, `updated` timestamp not null, foreign key (`cid`) references `collective`(`cid`) on delete cascade,