mirror of
https://github.com/kikootwo/ReadMeABook.git
synced 2026-06-02 20:30:10 +00:00
15 lines
508 B
SQL
15 lines
508 B
SQL
-- 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.
|