From e1072738fd23b4f45597186965a2f862f1cd096b Mon Sep 17 00:00:00 2001 From: Ilya Prokopenko Date: Fri, 24 Jun 2022 18:52:39 +0300 Subject: [PATCH] SQL: Fix rating and notifications Hopefully resolves #587 and some other issues --- install/sqls/00026-rating-fixed.sql | 2 ++ install/sqls/00027-EVENTDB-notifications-fixed.sql | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 install/sqls/00026-rating-fixed.sql create mode 100644 install/sqls/00027-EVENTDB-notifications-fixed.sql diff --git a/install/sqls/00026-rating-fixed.sql b/install/sqls/00026-rating-fixed.sql new file mode 100644 index 00000000..d38f2d98 --- /dev/null +++ b/install/sqls/00026-rating-fixed.sql @@ -0,0 +1,2 @@ +ALTER TABLE `profiles` CHANGE `coins` `coins` bigint(20) unsigned NOT NULL DEFAULT '0' AFTER `email`; +ALTER TABLE `profiles` ADD COLUMN `rating` bigint(20) unsigned NOT NULL DEFAULT '0' AFTER `coins`; diff --git a/install/sqls/00027-EVENTDB-notifications-fixed.sql b/install/sqls/00027-EVENTDB-notifications-fixed.sql new file mode 100644 index 00000000..d8c05b7a --- /dev/null +++ b/install/sqls/00027-EVENTDB-notifications-fixed.sql @@ -0,0 +1,2 @@ +ALTER TABLE `notifications` CHANGE `modelAction` `modelAction` mediumint(3) unsigned NOT NULL AFTER `targetModelId`; +ALTER TABLE `notifications` CHANGE `additionalData` `additionalData` text COLLATE 'utf8mb4_general_ci' NOT NULL AFTER `modelAction`;