Core separation #13

Merged
Teajey merged 11 commits from core-separation into main 2025-06-27 01:14:19 +12:00
2 changed files with 28 additions and 0 deletions
Showing only changes of commit 8cdbfe0439 - Show all commits

View File

@ -0,0 +1,22 @@
BEGIN TRANSACTION;
ALTER TABLE user ADD COLUMN "is_live" INTEGER NOT NULL DEFAULT 1;
ALTER TABLE user RENAME TO old_user;
CREATE TABLE "user" (
"id" INTEGER NOT NULL UNIQUE,
"name" TEXT NOT NULL UNIQUE,
"reference" TEXT NOT NULL UNIQUE,
"motto" TEXT NOT NULL DEFAULT "",
"password_hash" TEXT NOT NULL,
"is_admin" INTEGER NOT NULL DEFAULT 0,
"is_live" INTEGER NOT NULL DEFAULT 1,
PRIMARY KEY("id" AUTOINCREMENT)
);
INSERT INTO user SELECT * FROM old_user;
DROP TABLE "old_user";
COMMIT;

View File

@ -0,0 +1,6 @@
BEGIN TRANSACTION;
ALTER TABLE gift RENAME TO wish;
COMMIT;