SponsorBlockServer/databases/_upgrade_sponsorTimes_5.sql

17 lines
433 B
MySQL
Raw Normal View History

2020-12-29 06:18:50 +01:00
BEGIN TRANSACTION;
/* Add enabled field */
CREATE TABLE "sqlb_temp_table_5" (
"userID" TEXT NOT NULL,
"issueTime" INTEGER NOT NULL,
"issuerUserID" TEXT NOT NULL,
2020-12-29 06:18:50 +01:00
enabled INTEGER NOT NULL
);
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
UPDATE "config" SET value = 5 WHERE key = 'version';
2020-12-29 06:18:50 +01:00
COMMIT;