SponsorBlockServer/databases/_upgrade_sponsorTimes_17.sql

19 lines
475 B
MySQL
Raw Permalink Normal View History

2021-06-29 09:56:57 +02:00
BEGIN TRANSACTION;
/* Add reason field */
CREATE TABLE "sqlb_temp_table_17" (
"userID" TEXT NOT NULL,
"issueTime" INTEGER NOT NULL,
"issuerUserID" TEXT NOT NULL,
enabled INTEGER NOT NULL,
"reason" TEXT NOT NULL default ''
);
2021-06-30 03:59:20 +02:00
INSERT INTO sqlb_temp_table_17 SELECT "userID","issueTime","issuerUserID","enabled", '' FROM "warnings";
2021-06-29 09:56:57 +02:00
DROP TABLE warnings;
2021-06-30 03:59:20 +02:00
ALTER TABLE sqlb_temp_table_17 RENAME TO "warnings";
2021-06-29 09:56:57 +02:00
UPDATE "config" SET value = 17 WHERE key = 'version';
COMMIT;