From 5dffe74a851f3cfc362bbe46a55ea852f76f5424 Mon Sep 17 00:00:00 2001 From: Mariano Fuentes Date: Wed, 12 Feb 2025 11:22:46 -0800 Subject: [PATCH] add baseline migrations --- .../migration.sql | 91 ++++++++++++++++++- .../migration.sql | 2 - .../migration.sql | 47 ---------- .../migration.sql | 16 ---- .../migration.sql | 10 -- .../migration.sql | 11 --- .../migration.sql | 8 -- .../migration.sql | 9 -- .../migration.sql | 9 -- .../migration.sql | 29 ------ .../migration.sql | 19 ---- .../migration.sql | 2 - .../migration.sql | 2 - .../db/prisma/migrations/migration_lock.toml | 3 - 14 files changed, 86 insertions(+), 172 deletions(-) rename packages/db/prisma/migrations/{20250206222242_add_policies_tables => 0_init}/migration.sql (91%) delete mode 100644 packages/db/prisma/migrations/20250206224138_add_controls_to_policies/migration.sql delete mode 100644 packages/db/prisma/migrations/20250206230606_add_requirements_to_controls/migration.sql delete mode 100644 packages/db/prisma/migrations/20250206231115_simplify_controls_table/migration.sql delete mode 100644 packages/db/prisma/migrations/20250207011314_add_policy_id/migration.sql delete mode 100644 packages/db/prisma/migrations/20250210204644_add_new_requirement_types/migration.sql delete mode 100644 packages/db/prisma/migrations/20250210212236_connect_category_to_controls/migration.sql delete mode 100644 packages/db/prisma/migrations/20250210214327_add_usedBy_to_policies/migration.sql delete mode 100644 packages/db/prisma/migrations/20250210222417_change_used_by_datatype/migration.sql delete mode 100644 packages/db/prisma/migrations/20250211190006_add_organization_policy_join_table/migration.sql delete mode 100644 packages/db/prisma/migrations/20250211223842_policy_column_change_type/migration.sql delete mode 100644 packages/db/prisma/migrations/20250211224712_policy_column_change/migration.sql delete mode 100644 packages/db/prisma/migrations/20250212175319_add_content_to_organization_policy/migration.sql delete mode 100644 packages/db/prisma/migrations/migration_lock.toml diff --git a/packages/db/prisma/migrations/20250206222242_add_policies_tables/migration.sql b/packages/db/prisma/migrations/0_init/migration.sql similarity index 91% rename from packages/db/prisma/migrations/20250206222242_add_policies_tables/migration.sql rename to packages/db/prisma/migrations/0_init/migration.sql index 2fc9ef2190..82b515a631 100644 --- a/packages/db/prisma/migrations/20250206222242_add_policies_tables/migration.sql +++ b/packages/db/prisma/migrations/0_init/migration.sql @@ -10,6 +10,9 @@ CREATE TYPE "Role" AS ENUM ('member', 'admin'); -- CreateEnum CREATE TYPE "Departments" AS ENUM ('none', 'admin', 'gov', 'hr', 'it', 'itsm', 'qms'); +-- CreateEnum +CREATE TYPE "RequirementType" AS ENUM ('policy', 'file', 'link', 'procedure', 'evidence', 'training'); + -- CreateEnum CREATE TYPE "FrameworkStatus" AS ENUM ('not_started', 'in_progress', 'compliant', 'non_compliant'); @@ -55,6 +58,9 @@ CREATE TYPE "MembershipRole" AS ENUM ('owner', 'admin', 'member', 'viewer'); -- CreateEnum CREATE TYPE "EmployeeTaskStatus" AS ENUM ('assigned', 'in_progress', 'completed', 'overdue'); +-- CreateEnum +CREATE TYPE "PolicyStatus" AS ENUM ('draft', 'published', 'archived'); + -- CreateTable CREATE TABLE "Account" ( "id" TEXT NOT NULL, @@ -105,6 +111,7 @@ CREATE TABLE "Organization" ( "id" TEXT NOT NULL, "stripeCustomerId" TEXT, "name" TEXT NOT NULL, + "subdomain" TEXT NOT NULL, "website" TEXT NOT NULL, "tier" "Tier" NOT NULL DEFAULT 'free', "policiesCreated" BOOLEAN NOT NULL DEFAULT false, @@ -183,8 +190,8 @@ CREATE TABLE "Control" ( "code" TEXT NOT NULL, "name" TEXT NOT NULL, "description" TEXT, - "categoryId" TEXT NOT NULL, - "requiredArtifactTypes" "ArtifactType"[], + "domain" TEXT, + "frameworkCategoryId" TEXT, CONSTRAINT "Control_pkey" PRIMARY KEY ("id") ); @@ -269,6 +276,7 @@ CREATE TABLE "RiskMitigationTask" ( "description" TEXT NOT NULL, "status" "RiskTaskStatus" NOT NULL DEFAULT 'open', "dueDate" TIMESTAMP(3), + "notifiedAt" TIMESTAMP(3), "completedAt" TIMESTAMP(3), "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" TIMESTAMP(3) NOT NULL, @@ -518,8 +526,9 @@ CREATE TABLE "Policy" ( "slug" TEXT NOT NULL, "name" TEXT NOT NULL, "description" TEXT, - "template" TEXT NOT NULL, + "content" JSONB[], "version" TEXT, + "usedBy" JSONB NOT NULL, "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" TIMESTAMP(3) NOT NULL, @@ -561,6 +570,41 @@ CREATE TABLE "EmployeePolicyAcceptance" ( CONSTRAINT "EmployeePolicyAcceptance_pkey" PRIMARY KEY ("id") ); +-- CreateTable +CREATE TABLE "PolicyControl" ( + "id" TEXT NOT NULL, + "policyId" TEXT NOT NULL, + "controlId" TEXT NOT NULL, + + CONSTRAINT "PolicyControl_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "ControlRequirement" ( + "id" TEXT NOT NULL, + "controlId" TEXT NOT NULL, + "type" "RequirementType" NOT NULL, + "description" TEXT, + "policyId" TEXT, + "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updatedAt" TIMESTAMP(3) NOT NULL, + + CONSTRAINT "ControlRequirement_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "OrganizationPolicy" ( + "id" TEXT NOT NULL, + "organizationId" TEXT NOT NULL, + "status" "PolicyStatus" NOT NULL DEFAULT 'draft', + "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updatedAt" TIMESTAMP(3) NOT NULL, + "policyId" TEXT NOT NULL, + "content" JSONB[], + + CONSTRAINT "OrganizationPolicy_pkey" PRIMARY KEY ("id") +); + -- CreateIndex CREATE INDEX "Account_userId_idx" ON "Account"("userId"); @@ -582,6 +626,9 @@ CREATE INDEX "User_email_idx" ON "User"("email"); -- CreateIndex CREATE INDEX "User_organizationId_idx" ON "User"("organizationId"); +-- CreateIndex +CREATE UNIQUE INDEX "Organization_subdomain_key" ON "Organization"("subdomain"); + -- CreateIndex CREATE INDEX "Organization_stripeCustomerId_idx" ON "Organization"("stripeCustomerId"); @@ -622,7 +669,7 @@ CREATE INDEX "FrameworkCategory_frameworkId_idx" ON "FrameworkCategory"("framewo CREATE UNIQUE INDEX "Control_code_key" ON "Control"("code"); -- CreateIndex -CREATE INDEX "Control_categoryId_idx" ON "Control"("categoryId"); +CREATE INDEX "Control_frameworkCategoryId_idx" ON "Control"("frameworkCategoryId"); -- CreateIndex CREATE INDEX "OrganizationControl_organizationId_idx" ON "OrganizationControl"("organizationId"); @@ -810,6 +857,21 @@ CREATE UNIQUE INDEX "PolicyFramework_policyId_frameworkId_key" ON "PolicyFramewo -- CreateIndex CREATE UNIQUE INDEX "EmployeePolicyAcceptance_employeeId_policyId_key" ON "EmployeePolicyAcceptance"("employeeId", "policyId"); +-- CreateIndex +CREATE UNIQUE INDEX "PolicyControl_policyId_controlId_key" ON "PolicyControl"("policyId", "controlId"); + +-- CreateIndex +CREATE INDEX "ControlRequirement_controlId_idx" ON "ControlRequirement"("controlId"); + +-- CreateIndex +CREATE INDEX "OrganizationPolicy_organizationId_idx" ON "OrganizationPolicy"("organizationId"); + +-- CreateIndex +CREATE INDEX "OrganizationPolicy_policyId_idx" ON "OrganizationPolicy"("policyId"); + +-- CreateIndex +CREATE UNIQUE INDEX "OrganizationPolicy_organizationId_policyId_key" ON "OrganizationPolicy"("organizationId", "policyId"); + -- AddForeignKey ALTER TABLE "Account" ADD CONSTRAINT "Account_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE; @@ -841,7 +903,7 @@ ALTER TABLE "OrganizationFramework" ADD CONSTRAINT "OrganizationFramework_framew ALTER TABLE "FrameworkCategory" ADD CONSTRAINT "FrameworkCategory_frameworkId_fkey" FOREIGN KEY ("frameworkId") REFERENCES "Framework"("id") ON DELETE CASCADE ON UPDATE CASCADE; -- AddForeignKey -ALTER TABLE "Control" ADD CONSTRAINT "Control_categoryId_fkey" FOREIGN KEY ("categoryId") REFERENCES "FrameworkCategory"("id") ON DELETE CASCADE ON UPDATE CASCADE; +ALTER TABLE "Control" ADD CONSTRAINT "Control_frameworkCategoryId_fkey" FOREIGN KEY ("frameworkCategoryId") REFERENCES "FrameworkCategory"("id") ON DELETE SET NULL ON UPDATE CASCADE; -- AddForeignKey ALTER TABLE "OrganizationControl" ADD CONSTRAINT "OrganizationControl_organizationId_fkey" FOREIGN KEY ("organizationId") REFERENCES "Organization"("id") ON DELETE CASCADE ON UPDATE CASCADE; @@ -1022,3 +1084,22 @@ ALTER TABLE "EmployeePolicyAcceptance" ADD CONSTRAINT "EmployeePolicyAcceptance_ -- AddForeignKey ALTER TABLE "EmployeePolicyAcceptance" ADD CONSTRAINT "EmployeePolicyAcceptance_policyId_fkey" FOREIGN KEY ("policyId") REFERENCES "Policy"("id") ON DELETE CASCADE ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "PolicyControl" ADD CONSTRAINT "PolicyControl_policyId_fkey" FOREIGN KEY ("policyId") REFERENCES "Policy"("id") ON DELETE CASCADE ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "PolicyControl" ADD CONSTRAINT "PolicyControl_controlId_fkey" FOREIGN KEY ("controlId") REFERENCES "Control"("id") ON DELETE CASCADE ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "ControlRequirement" ADD CONSTRAINT "ControlRequirement_controlId_fkey" FOREIGN KEY ("controlId") REFERENCES "Control"("id") ON DELETE CASCADE ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "ControlRequirement" ADD CONSTRAINT "ControlRequirement_policyId_fkey" FOREIGN KEY ("policyId") REFERENCES "Policy"("id") ON DELETE SET NULL ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "OrganizationPolicy" ADD CONSTRAINT "OrganizationPolicy_organizationId_fkey" FOREIGN KEY ("organizationId") REFERENCES "Organization"("id") ON DELETE CASCADE ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "OrganizationPolicy" ADD CONSTRAINT "OrganizationPolicy_policyId_fkey" FOREIGN KEY ("policyId") REFERENCES "Policy"("id") ON DELETE CASCADE ON UPDATE CASCADE; + diff --git a/packages/db/prisma/migrations/20250206224138_add_controls_to_policies/migration.sql b/packages/db/prisma/migrations/20250206224138_add_controls_to_policies/migration.sql deleted file mode 100644 index b896a6a78d..0000000000 --- a/packages/db/prisma/migrations/20250206224138_add_controls_to_policies/migration.sql +++ /dev/null @@ -1,2 +0,0 @@ --- AlterTable -ALTER TABLE "Policy" ADD COLUMN "controls" TEXT[]; diff --git a/packages/db/prisma/migrations/20250206230606_add_requirements_to_controls/migration.sql b/packages/db/prisma/migrations/20250206230606_add_requirements_to_controls/migration.sql deleted file mode 100644 index 01954164cd..0000000000 --- a/packages/db/prisma/migrations/20250206230606_add_requirements_to_controls/migration.sql +++ /dev/null @@ -1,47 +0,0 @@ --- CreateEnum -CREATE TYPE "RequirementType" AS ENUM ('policy', 'file', 'link'); - --- AlterTable -ALTER TABLE "Control" ADD COLUMN "domain" TEXT; - --- CreateTable -CREATE TABLE "PolicyControl" ( - "id" TEXT NOT NULL, - "policyId" TEXT NOT NULL, - "controlId" TEXT NOT NULL, - - CONSTRAINT "PolicyControl_pkey" PRIMARY KEY ("id") -); - --- CreateTable -CREATE TABLE "ControlRequirement" ( - "id" TEXT NOT NULL, - "controlId" TEXT NOT NULL, - "type" "RequirementType" NOT NULL, - "description" TEXT, - "url" TEXT, - "fileType" TEXT, - "policyId" TEXT, - "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updatedAt" TIMESTAMP(3) NOT NULL, - - CONSTRAINT "ControlRequirement_pkey" PRIMARY KEY ("id") -); - --- CreateIndex -CREATE UNIQUE INDEX "PolicyControl_policyId_controlId_key" ON "PolicyControl"("policyId", "controlId"); - --- CreateIndex -CREATE INDEX "ControlRequirement_controlId_idx" ON "ControlRequirement"("controlId"); - --- AddForeignKey -ALTER TABLE "PolicyControl" ADD CONSTRAINT "PolicyControl_policyId_fkey" FOREIGN KEY ("policyId") REFERENCES "Policy"("id") ON DELETE CASCADE ON UPDATE CASCADE; - --- AddForeignKey -ALTER TABLE "PolicyControl" ADD CONSTRAINT "PolicyControl_controlId_fkey" FOREIGN KEY ("controlId") REFERENCES "Control"("id") ON DELETE CASCADE ON UPDATE CASCADE; - --- AddForeignKey -ALTER TABLE "ControlRequirement" ADD CONSTRAINT "ControlRequirement_controlId_fkey" FOREIGN KEY ("controlId") REFERENCES "Control"("id") ON DELETE CASCADE ON UPDATE CASCADE; - --- AddForeignKey -ALTER TABLE "ControlRequirement" ADD CONSTRAINT "ControlRequirement_policyId_fkey" FOREIGN KEY ("policyId") REFERENCES "Policy"("id") ON DELETE SET NULL ON UPDATE CASCADE; diff --git a/packages/db/prisma/migrations/20250206231115_simplify_controls_table/migration.sql b/packages/db/prisma/migrations/20250206231115_simplify_controls_table/migration.sql deleted file mode 100644 index 29f411a10d..0000000000 --- a/packages/db/prisma/migrations/20250206231115_simplify_controls_table/migration.sql +++ /dev/null @@ -1,16 +0,0 @@ -/* - Warnings: - - - You are about to drop the column `categoryId` on the `Control` table. All the data in the column will be lost. - - You are about to drop the column `requiredArtifactTypes` on the `Control` table. All the data in the column will be lost. - -*/ --- DropForeignKey -ALTER TABLE "Control" DROP CONSTRAINT "Control_categoryId_fkey"; - --- DropIndex -DROP INDEX "Control_categoryId_idx"; - --- AlterTable -ALTER TABLE "Control" DROP COLUMN "categoryId", -DROP COLUMN "requiredArtifactTypes"; diff --git a/packages/db/prisma/migrations/20250207011314_add_policy_id/migration.sql b/packages/db/prisma/migrations/20250207011314_add_policy_id/migration.sql deleted file mode 100644 index 60b843e4f0..0000000000 --- a/packages/db/prisma/migrations/20250207011314_add_policy_id/migration.sql +++ /dev/null @@ -1,10 +0,0 @@ -/* - Warnings: - - - You are about to drop the column `fileType` on the `ControlRequirement` table. All the data in the column will be lost. - - You are about to drop the column `url` on the `ControlRequirement` table. All the data in the column will be lost. - -*/ --- AlterTable -ALTER TABLE "ControlRequirement" DROP COLUMN "fileType", -DROP COLUMN "url"; diff --git a/packages/db/prisma/migrations/20250210204644_add_new_requirement_types/migration.sql b/packages/db/prisma/migrations/20250210204644_add_new_requirement_types/migration.sql deleted file mode 100644 index 44b0ef4795..0000000000 --- a/packages/db/prisma/migrations/20250210204644_add_new_requirement_types/migration.sql +++ /dev/null @@ -1,11 +0,0 @@ --- AlterEnum --- This migration adds more than one value to an enum. --- With PostgreSQL versions 11 and earlier, this is not possible --- in a single migration. This can be worked around by creating --- multiple migrations, each migration adding only one value to --- the enum. - - -ALTER TYPE "RequirementType" ADD VALUE 'procedure'; -ALTER TYPE "RequirementType" ADD VALUE 'evidence'; -ALTER TYPE "RequirementType" ADD VALUE 'training'; diff --git a/packages/db/prisma/migrations/20250210212236_connect_category_to_controls/migration.sql b/packages/db/prisma/migrations/20250210212236_connect_category_to_controls/migration.sql deleted file mode 100644 index 6a4eaa8b20..0000000000 --- a/packages/db/prisma/migrations/20250210212236_connect_category_to_controls/migration.sql +++ /dev/null @@ -1,8 +0,0 @@ --- AlterTable -ALTER TABLE "Control" ADD COLUMN "frameworkCategoryId" TEXT; - --- CreateIndex -CREATE INDEX "Control_frameworkCategoryId_idx" ON "Control"("frameworkCategoryId"); - --- AddForeignKey -ALTER TABLE "Control" ADD CONSTRAINT "Control_frameworkCategoryId_fkey" FOREIGN KEY ("frameworkCategoryId") REFERENCES "FrameworkCategory"("id") ON DELETE SET NULL ON UPDATE CASCADE; diff --git a/packages/db/prisma/migrations/20250210214327_add_usedBy_to_policies/migration.sql b/packages/db/prisma/migrations/20250210214327_add_usedBy_to_policies/migration.sql deleted file mode 100644 index 769324afde..0000000000 --- a/packages/db/prisma/migrations/20250210214327_add_usedBy_to_policies/migration.sql +++ /dev/null @@ -1,9 +0,0 @@ -/* - Warnings: - - - You are about to drop the column `controls` on the `Policy` table. All the data in the column will be lost. - -*/ --- AlterTable -ALTER TABLE "Policy" DROP COLUMN "controls", -ADD COLUMN "usedBy" TEXT[]; diff --git a/packages/db/prisma/migrations/20250210222417_change_used_by_datatype/migration.sql b/packages/db/prisma/migrations/20250210222417_change_used_by_datatype/migration.sql deleted file mode 100644 index 5ab3a5c9c2..0000000000 --- a/packages/db/prisma/migrations/20250210222417_change_used_by_datatype/migration.sql +++ /dev/null @@ -1,9 +0,0 @@ -/* - Warnings: - - - Changed the type of `usedBy` on the `Policy` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required. - -*/ --- AlterTable -ALTER TABLE "Policy" DROP COLUMN "usedBy", -ADD COLUMN "usedBy" JSONB NOT NULL; diff --git a/packages/db/prisma/migrations/20250211190006_add_organization_policy_join_table/migration.sql b/packages/db/prisma/migrations/20250211190006_add_organization_policy_join_table/migration.sql deleted file mode 100644 index d32ff46fe0..0000000000 --- a/packages/db/prisma/migrations/20250211190006_add_organization_policy_join_table/migration.sql +++ /dev/null @@ -1,29 +0,0 @@ --- CreateEnum -CREATE TYPE "PolicyStatus" AS ENUM ('draft', 'published', 'archived'); - --- CreateTable -CREATE TABLE "OrganizationPolicy" ( - "id" TEXT NOT NULL, - "organizationId" TEXT NOT NULL, - "status" "PolicyStatus" NOT NULL DEFAULT 'draft', - "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updatedAt" TIMESTAMP(3) NOT NULL, - "policyId" TEXT NOT NULL, - - CONSTRAINT "OrganizationPolicy_pkey" PRIMARY KEY ("id") -); - --- CreateIndex -CREATE INDEX "OrganizationPolicy_organizationId_idx" ON "OrganizationPolicy"("organizationId"); - --- CreateIndex -CREATE INDEX "OrganizationPolicy_policyId_idx" ON "OrganizationPolicy"("policyId"); - --- CreateIndex -CREATE UNIQUE INDEX "OrganizationPolicy_organizationId_policyId_key" ON "OrganizationPolicy"("organizationId", "policyId"); - --- AddForeignKey -ALTER TABLE "OrganizationPolicy" ADD CONSTRAINT "OrganizationPolicy_organizationId_fkey" FOREIGN KEY ("organizationId") REFERENCES "Organization"("id") ON DELETE CASCADE ON UPDATE CASCADE; - --- AddForeignKey -ALTER TABLE "OrganizationPolicy" ADD CONSTRAINT "OrganizationPolicy_policyId_fkey" FOREIGN KEY ("policyId") REFERENCES "Policy"("id") ON DELETE CASCADE ON UPDATE CASCADE; diff --git a/packages/db/prisma/migrations/20250211223842_policy_column_change_type/migration.sql b/packages/db/prisma/migrations/20250211223842_policy_column_change_type/migration.sql deleted file mode 100644 index cc70b2aafb..0000000000 --- a/packages/db/prisma/migrations/20250211223842_policy_column_change_type/migration.sql +++ /dev/null @@ -1,19 +0,0 @@ -/* - Warnings: - - - You are about to drop the column `template` on the `Policy` table. All the data in the column will be lost. - - A unique constraint covering the columns `[subdomain]` on the table `Organization` will be added. If there are existing duplicate values, this will fail. - -*/ --- AlterTable -ALTER TABLE "Organization" ADD COLUMN "subdomain" TEXT NOT NULL DEFAULT 'example.com'; - --- AlterTable -ALTER TABLE "Policy" DROP COLUMN "template", -ADD COLUMN "content" JSONB[]; - --- AlterTable -ALTER TABLE "RiskMitigationTask" ADD COLUMN "notifiedAt" TIMESTAMP(3); - --- CreateIndex -CREATE UNIQUE INDEX "Organization_subdomain_key" ON "Organization"("subdomain"); diff --git a/packages/db/prisma/migrations/20250211224712_policy_column_change/migration.sql b/packages/db/prisma/migrations/20250211224712_policy_column_change/migration.sql deleted file mode 100644 index 33bc3b28f6..0000000000 --- a/packages/db/prisma/migrations/20250211224712_policy_column_change/migration.sql +++ /dev/null @@ -1,2 +0,0 @@ --- AlterTable -ALTER TABLE "Organization" ALTER COLUMN "subdomain" DROP DEFAULT; diff --git a/packages/db/prisma/migrations/20250212175319_add_content_to_organization_policy/migration.sql b/packages/db/prisma/migrations/20250212175319_add_content_to_organization_policy/migration.sql deleted file mode 100644 index a2de701f5b..0000000000 --- a/packages/db/prisma/migrations/20250212175319_add_content_to_organization_policy/migration.sql +++ /dev/null @@ -1,2 +0,0 @@ --- AlterTable -ALTER TABLE "OrganizationPolicy" ADD COLUMN "content" JSONB[]; diff --git a/packages/db/prisma/migrations/migration_lock.toml b/packages/db/prisma/migrations/migration_lock.toml deleted file mode 100644 index 648c57fd59..0000000000 --- a/packages/db/prisma/migrations/migration_lock.toml +++ /dev/null @@ -1,3 +0,0 @@ -# Please do not edit this file manually -# It should be added in your version-control system (e.g., Git) -provider = "postgresql" \ No newline at end of file