Add remove feature to warnUser

This commit is contained in:
Ajay Ramachandran
2020-12-29 00:18:50 -05:00
parent 2769acecc0
commit 78ef129634
11 changed files with 104 additions and 38 deletions

View File

@@ -0,0 +1,17 @@
BEGIN TRANSACTION;
/* Add enabled field */
CREATE TABLE "sqlb_temp_table_5" (
userID TEXT NOT NULL,
issueTime INTEGER NOT NULL,
issuerUserID TEXT NOT NULL,
enabled INTEGER NOT NULL
);
INSERT INTO sqlb_temp_table_5 SELECT userID,issueTime,issuerUserID,1 FROM warnings;
DROP TABLE warnings;
ALTER TABLE sqlb_temp_table_5 RENAME TO "warnings";
UPDATE config SET value = 5 WHERE key = "version";
COMMIT;