SQL: Fix rating and notifications

Hopefully resolves #587 and some other issues
This commit is contained in:
Ilya Prokopenko 2022-06-24 18:52:39 +03:00
parent 4147d0478a
commit e1072738fd
No known key found for this signature in database
GPG key ID: 3EE235B32BF277D9
2 changed files with 4 additions and 0 deletions

View file

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

View file

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