refactor(server): remove never used column in page permission (#9985)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- The primary key for the `workspace_page_user_permissions` table will be changed. If it partially fails, the table could be left without primary key constraint.
|
||||
- You are about to drop the column `accepted` on the `workspace_page_user_permissions` table. All the data in the column will be lost.
|
||||
- You are about to drop the column `id` on the `workspace_page_user_permissions` table. All the data in the column will be lost.
|
||||
|
||||
*/
|
||||
-- DropIndex
|
||||
DROP INDEX "workspace_page_user_permissions_workspace_id_page_id_user_i_key";
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "workspace_page_user_permissions" DROP CONSTRAINT "workspace_page_user_permissions_pkey",
|
||||
DROP COLUMN "accepted",
|
||||
DROP COLUMN "id",
|
||||
ADD CONSTRAINT "workspace_page_user_permissions_pkey" PRIMARY KEY ("workspace_id", "page_id", "user_id");
|
||||
Reference in New Issue
Block a user