mirror of
https://github.com/LukeHagar/baton.git
synced 2025-12-06 04:19:20 +00:00
23 lines
742 B
SQL
23 lines
742 B
SQL
/*
|
|
Warnings:
|
|
|
|
- You are about to drop the column `query` on the `Webhook` table. All the data in the column will be lost.
|
|
|
|
*/
|
|
-- RedefineTables
|
|
PRAGMA defer_foreign_keys=ON;
|
|
PRAGMA foreign_keys=OFF;
|
|
CREATE TABLE "new_Webhook" (
|
|
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
"headers" TEXT NOT NULL,
|
|
"method" TEXT NOT NULL,
|
|
"path" TEXT NOT NULL,
|
|
"body" TEXT NOT NULL,
|
|
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
|
|
);
|
|
INSERT INTO "new_Webhook" ("body", "createdAt", "headers", "id", "method", "path") SELECT "body", "createdAt", "headers", "id", "method", "path" FROM "Webhook";
|
|
DROP TABLE "Webhook";
|
|
ALTER TABLE "new_Webhook" RENAME TO "Webhook";
|
|
PRAGMA foreign_keys=ON;
|
|
PRAGMA defer_foreign_keys=OFF;
|