Skip to content

Commit

Permalink
Update migrate.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
wonderlandpark authored Oct 13, 2020
1 parent 98bfc65 commit 4227c11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion migrate.sql
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ ALTER TABLE `bots` ADD COLUMN partnered BOOLEAN NOT NULL DEFAULT 0;
UPDATE `users` SET perm=0;
ALTER TABLE `users` CHANGE `perm` `perm` INT(5) NOT NULL DEFAULT '0';
ALTER TABLE `users` ADD `email` TEXT NULL AFTER `id`;
ALTER TABLE `users` ADD `stared` TEXT NOT NULL DEFAULT '[]' AFTER `github`;
ALTER TABLE `users` ADD `stared` TEXT NOT NULL DEFAULT '[]' AFTER `github
ALTER TABLE `users` ADD `discord` TEXT NOT NULL AFTER `token`;
UPDATE `users` SET `stared` = `votes` WHERE `id`=`id`;
ALTER TABLE `users` CHANGE `votes` `votes` LONGTEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '{}';
UPDATE `users` SET votes="{}";
Expand Down

0 comments on commit 4227c11

Please sign in to comment.