feat: remove unused cc_perms table (#1909)

This commit is contained in:
Jonas L 2022-06-22 16:32:39 +02:00 committed by GitHub
parent a7c45fb0e1
commit 9c042c881a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 45 additions and 3133 deletions

View file

@ -115,26 +115,6 @@ CREATE TABLE "cloud_file"
PRIMARY KEY ("id")
);
-----------------------------------------------------------------------
-- cc_perms
-----------------------------------------------------------------------
DROP TABLE IF EXISTS "cc_perms" CASCADE;
CREATE TABLE "cc_perms"
(
"permid" INTEGER NOT NULL,
"subj" INTEGER,
"action" VARCHAR(20),
"obj" INTEGER,
"type" CHAR(1),
PRIMARY KEY ("permid"),
CONSTRAINT "cc_perms_all_idx" UNIQUE ("subj","action","obj"),
CONSTRAINT "cc_perms_permid_idx" UNIQUE ("permid")
);
CREATE INDEX "cc_perms_subj_obj_idx" ON "cc_perms" ("subj","obj");
-----------------------------------------------------------------------
-- cc_show
-----------------------------------------------------------------------
@ -760,11 +740,6 @@ ALTER TABLE "cloud_file" ADD CONSTRAINT "cloud_file_FK_1"
REFERENCES "cc_files" ("id")
ON DELETE CASCADE;
ALTER TABLE "cc_perms" ADD CONSTRAINT "cc_perms_subj_fkey"
FOREIGN KEY ("subj")
REFERENCES "cc_subjs" ("id")
ON DELETE CASCADE;
ALTER TABLE "cc_show" ADD CONSTRAINT "cc_playlist_autoplaylist_fkey"
FOREIGN KEY ("autoplaylist_id")
REFERENCES "cc_playlist" ("id")