diff options
| author | Kevin Kendzia <[email protected]> | 2022-05-14 02:44:14 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-05-13 19:44:14 -0500 |
| commit | eb2885b2061708415e46929d21bc5991724ce441 (patch) | |
| tree | e77496a2d2fdd249cc505ca1e06d7b17cce957ac /migrations | |
| parent | 1ef05aba9d2e692ef365721f725be2d2a4e464d9 (diff) | |
| download | muse-eb2885b2061708415e46929d21bc5991724ce441.tar.xz muse-eb2885b2061708415e46929d21bc5991724ce441.zip | |
fix command permission handling and push discord to v10 (#640)
Co-authored-by: Max Isom <[email protected]>
Diffstat (limited to 'migrations')
| -rw-r--r-- | migrations/20220514002538_remove_invited_by_user_id/migration.sql | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/migrations/20220514002538_remove_invited_by_user_id/migration.sql b/migrations/20220514002538_remove_invited_by_user_id/migration.sql new file mode 100644 index 0000000..1e0da73 --- /dev/null +++ b/migrations/20220514002538_remove_invited_by_user_id/migration.sql @@ -0,0 +1,22 @@ +/* + Warnings: + + - You are about to drop the column `invitedByUserId` on the `Setting` table. All the data in the column will be lost. + +*/ +-- RedefineTables +PRAGMA foreign_keys=OFF; +CREATE TABLE "new_Setting" ( + "guildId" TEXT NOT NULL PRIMARY KEY, + "playlistLimit" INTEGER NOT NULL DEFAULT 50, + "secondsToWaitAfterQueueEmpties" INTEGER NOT NULL DEFAULT 30, + "leaveIfNoListeners" BOOLEAN NOT NULL DEFAULT true, + "roleId" TEXT, + "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updatedAt" DATETIME NOT NULL +); +INSERT INTO "new_Setting" ("createdAt", "guildId", "leaveIfNoListeners", "playlistLimit", "roleId", "secondsToWaitAfterQueueEmpties", "updatedAt") SELECT "createdAt", "guildId", "leaveIfNoListeners", "playlistLimit", "roleId", "secondsToWaitAfterQueueEmpties", "updatedAt" FROM "Setting"; +DROP TABLE "Setting"; +ALTER TABLE "new_Setting" RENAME TO "Setting"; +PRAGMA foreign_key_check; +PRAGMA foreign_keys=ON; |
