mirror of
https://github.com/wasp-lang/wasp.git
synced 2025-01-06 09:18:47 +03:00
18 lines
529 B
SQL
18 lines
529 B
SQL
/*
|
|
Warnings:
|
|
|
|
- You are about to drop the column `password` on the `User` table. All the data in the column will be lost.
|
|
- You are about to drop the column `username` on the `User` table. All the data in the column will be lost.
|
|
|
|
*/
|
|
-- RedefineTables
|
|
PRAGMA foreign_keys=OFF;
|
|
CREATE TABLE "new_User" (
|
|
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT
|
|
);
|
|
INSERT INTO "new_User" ("id") SELECT "id" FROM "User";
|
|
DROP TABLE "User";
|
|
ALTER TABLE "new_User" RENAME TO "User";
|
|
PRAGMA foreign_key_check;
|
|
PRAGMA foreign_keys=ON;
|