umami/db/postgresql/migrations/03_drop_foreign_keys/migration.sql

18 lines
483 B
MySQL
Raw Normal View History

2022-12-28 01:26:25 +01:00
-- 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");