umami/db/postgresql/migrations/03_drop_foreign_keys/migration.sql
2022-12-27 16:26:25 -08:00

18 lines
483 B
SQL

-- DropForeignKey
ALTER TABLE "team_user" DROP CONSTRAINT "team_user_team_id_fkey";
-- DropForeignKey
ALTER TABLE "team_user" DROP CONSTRAINT "team_user_user_id_fkey";
-- DropForeignKey
ALTER TABLE "website" DROP CONSTRAINT "website_team_id_fkey";
-- DropForeignKey
ALTER TABLE "website" DROP CONSTRAINT "website_user_id_fkey";
-- CreateIndex
CREATE INDEX "website_team_id_idx" ON "website"("team_id");
-- CreateIndex
CREATE INDEX "website_user_id_idx" ON "website"("user_id");