mirror of
https://gitlab.com/mobicoop/v3/service/configuration.git
synced 2026-01-11 08:32:39 +00:00
add matcher domain, set domain as string instead of enum in db
This commit is contained in:
14
prisma/migrations/20230524120120_init/migration.sql
Normal file
14
prisma/migrations/20230524120120_init/migration.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
-- CreateTable
|
||||
CREATE TABLE "configuration" (
|
||||
"uuid" UUID NOT NULL,
|
||||
"domain" TEXT NOT NULL,
|
||||
"key" TEXT NOT NULL,
|
||||
"value" TEXT NOT NULL,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||
|
||||
CONSTRAINT "configuration_pkey" PRIMARY KEY ("uuid")
|
||||
);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "configuration_domain_key_key" ON "configuration"("domain", "key");
|
||||
Reference in New Issue
Block a user