mirror of
https://github.com/kikootwo/ReadMeABook.git
synced 2026-06-03 12:50:09 +00:00
Initial commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
-- DropForeignKey
|
||||
ALTER TABLE "bookdate_config" DROP CONSTRAINT "bookdate_config_user_id_fkey";
|
||||
|
||||
-- DropIndex
|
||||
DROP INDEX "bookdate_config_user_id_idx";
|
||||
|
||||
-- DropIndex
|
||||
DROP INDEX "bookdate_config_user_id_key";
|
||||
|
||||
-- AlterTable: Remove userId column and user relation
|
||||
ALTER TABLE "bookdate_config" DROP COLUMN "user_id";
|
||||
|
||||
-- Note: This migration converts BookDateConfig from per-user to a single global configuration
|
||||
-- managed by admins. Any existing per-user configs will be removed except the first one found.
|
||||
Reference in New Issue
Block a user