Skip to content

Commit efa3d62

Browse files
committed
feat(licensing): add Prisma migration for RuntimeConfig table
Adds the database migration that creates the licensing storage table (postgres + mysql). This was missing from the previous licensing commit. Without this migration, npm run db:deploy is a no-op and the server will fail to find the table at boot.
1 parent f797db8 commit efa3d62

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

  • prisma
    • mysql-migrations/20260506184850_add_runtime_config
    • postgresql-migrations/20260506184850_add_runtime_config
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
-- CreateTable
2+
CREATE TABLE `RuntimeConfig` (
3+
`id` INTEGER NOT NULL AUTO_INCREMENT,
4+
`key` VARCHAR(100) NOT NULL,
5+
`value` TEXT NOT NULL,
6+
`createdAt` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
7+
`updatedAt` TIMESTAMP NOT NULL,
8+
9+
UNIQUE INDEX `RuntimeConfig_key_key`(`key`),
10+
PRIMARY KEY (`id`)
11+
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
-- CreateTable
2+
CREATE TABLE "RuntimeConfig" (
3+
"id" SERIAL NOT NULL,
4+
"key" VARCHAR(100) NOT NULL,
5+
"value" TEXT NOT NULL,
6+
"createdAt" TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
7+
"updatedAt" TIMESTAMP NOT NULL,
8+
9+
CONSTRAINT "RuntimeConfig_pkey" PRIMARY KEY ("id")
10+
);
11+
12+
-- CreateIndex
13+
CREATE UNIQUE INDEX "RuntimeConfig_key_key" ON "RuntimeConfig"("key");

0 commit comments

Comments
 (0)