2020-12-29 06:18:50 +01:00
|
|
|
BEGIN TRANSACTION;
|
|
|
|
|
|
|
|
/* Add enabled field */
|
|
|
|
CREATE TABLE "sqlb_temp_table_5" (
|
2021-03-05 02:23:05 +01:00
|
|
|
"userID" TEXT NOT NULL,
|
|
|
|
"issueTime" INTEGER NOT NULL,
|
|
|
|
"issuerUserID" TEXT NOT NULL,
|
2020-12-29 06:18:50 +01:00
|
|
|
enabled INTEGER NOT NULL
|
|
|
|
);
|
2021-03-05 02:23:05 +01:00
|
|
|
INSERT INTO sqlb_temp_table_5 SELECT "userID","issueTime","issuerUserID",1 FROM "warnings";
|
2020-12-29 06:18:50 +01:00
|
|
|
|
|
|
|
DROP TABLE warnings;
|
2021-03-05 01:44:54 +01:00
|
|
|
ALTER TABLE sqlb_temp_table_5 RENAME TO "warnings";;
|
2020-12-29 06:18:50 +01:00
|
|
|
|
2021-03-05 02:23:05 +01:00
|
|
|
UPDATE "config" SET value = 5 WHERE key = 'version';
|
2020-12-29 06:18:50 +01:00
|
|
|
|
|
|
|
COMMIT;
|