mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-23 09:15:29 +01:00
56a469a999
Co-authored-by: Federico fuji97 Rapetti <fuji1097@gmail.com>
20 lines
668 B
SQL
20 lines
668 B
SQL
/*
|
|
Warnings:
|
|
|
|
- You are about to drop the column `channel` 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,
|
|
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
"updatedAt" DATETIME NOT NULL
|
|
);
|
|
INSERT INTO "new_Setting" ("createdAt", "guildId", "playlistLimit", "updatedAt") SELECT "createdAt", "guildId", "playlistLimit", "updatedAt" FROM "Setting";
|
|
DROP TABLE "Setting";
|
|
ALTER TABLE "new_Setting" RENAME TO "Setting";
|
|
PRAGMA foreign_key_check;
|
|
PRAGMA foreign_keys=ON;
|