mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
drop foreign keys, add missing indexes
This commit is contained in:
parent
c90bd941b5
commit
8ee7172ea0
2 changed files with 20 additions and 0 deletions
17
db/postgresql/migrations/03_drop_foreign_keys/migration.sql
Normal file
17
db/postgresql/migrations/03_drop_foreign_keys/migration.sql
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
-- 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");
|
||||
Loading…
Add table
Add a link
Reference in a new issue