mirror of
https://github.com/wasp-lang/wasp.git
synced 2025-01-07 18:11:05 +03:00
18 lines
529 B
MySQL
18 lines
529 B
MySQL
|
/*
|
||
|
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;
|