Completed kms
This commit is contained in:
36
prisma/migrations/20241221004838_/migration.sql
Normal file
36
prisma/migrations/20241221004838_/migration.sql
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to alter the column `key` on the `KmsKey` table. The data in that column could be lost. The data in that column will be cast from `String` to `Binary`.
|
||||
- Added the required column `enabled` to the `KmsKey` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `keyState` to the `KmsKey` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `multiRegion` to the `KmsKey` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `origin` to the `KmsKey` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `policy` to the `KmsKey` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `updatedAt` to the `KmsKey` table without a default value. This is not possible if the table is not empty.
|
||||
|
||||
*/
|
||||
-- RedefineTables
|
||||
PRAGMA defer_foreign_keys=ON;
|
||||
PRAGMA foreign_keys=OFF;
|
||||
CREATE TABLE "new_KmsKey" (
|
||||
"id" TEXT NOT NULL PRIMARY KEY,
|
||||
"enabled" BOOLEAN NOT NULL,
|
||||
"usage" TEXT NOT NULL,
|
||||
"description" TEXT NOT NULL,
|
||||
"keySpec" TEXT NOT NULL,
|
||||
"keyState" TEXT NOT NULL,
|
||||
"origin" TEXT NOT NULL,
|
||||
"multiRegion" BOOLEAN NOT NULL,
|
||||
"policy" TEXT NOT NULL,
|
||||
"key" BLOB NOT NULL,
|
||||
"accountId" TEXT NOT NULL,
|
||||
"region" TEXT NOT NULL,
|
||||
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updatedAt" DATETIME NOT NULL
|
||||
);
|
||||
INSERT INTO "new_KmsKey" ("accountId", "createdAt", "description", "id", "key", "keySpec", "region", "usage") SELECT "accountId", "createdAt", "description", "id", "key", "keySpec", "region", "usage" FROM "KmsKey";
|
||||
DROP TABLE "KmsKey";
|
||||
ALTER TABLE "new_KmsKey" RENAME TO "KmsKey";
|
||||
PRAGMA foreign_keys=ON;
|
||||
PRAGMA defer_foreign_keys=OFF;
|
||||
Reference in New Issue
Block a user