s3 impl
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the column `accountId` on the `S3Bucket` table. All the data in the column will be lost.
|
||||
- You are about to drop the column `region` on the `S3Bucket` table. All the data in the column will be lost.
|
||||
|
||||
*/
|
||||
-- RedefineTables
|
||||
PRAGMA defer_foreign_keys=ON;
|
||||
PRAGMA foreign_keys=OFF;
|
||||
CREATE TABLE "new_S3Bucket" (
|
||||
"id" TEXT NOT NULL PRIMARY KEY,
|
||||
"name" TEXT NOT NULL,
|
||||
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
INSERT INTO "new_S3Bucket" ("createdAt", "id", "name") SELECT "createdAt", "id", "name" FROM "S3Bucket";
|
||||
DROP TABLE "S3Bucket";
|
||||
ALTER TABLE "new_S3Bucket" RENAME TO "S3Bucket";
|
||||
CREATE UNIQUE INDEX "S3Bucket_name_key" ON "S3Bucket"("name");
|
||||
PRAGMA foreign_keys=ON;
|
||||
PRAGMA defer_foreign_keys=OFF;
|
||||
Reference in New Issue
Block a user