/* Warnings: - Added the required column `volumes` to the `UserPreferences` table without a default value. This is not possible if the table is not empty. */ -- RedefineTables PRAGMA defer_foreign_keys=ON; PRAGMA foreign_keys=OFF; CREATE TABLE "new_UserPreferences" ( "userId" TEXT NOT NULL PRIMARY KEY, "toggleInputHotkey" TEXT NOT NULL, "toggleOutputHotkey" TEXT NOT NULL, "volumes" JSONB NOT NULL, CONSTRAINT "UserPreferences_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User" ("id") ON DELETE CASCADE ON UPDATE CASCADE ); INSERT INTO "new_UserPreferences" ("toggleInputHotkey", "toggleOutputHotkey", "userId") SELECT "toggleInputHotkey", "toggleOutputHotkey", "userId" FROM "UserPreferences"; DROP TABLE "UserPreferences"; ALTER TABLE "new_UserPreferences" RENAME TO "UserPreferences"; PRAGMA foreign_keys=ON; PRAGMA defer_foreign_keys=OFF;