SponsorBlockServer/databases/_upgrade_sponsorTimes_13.sql

18 lines
397 B
MySQL
Raw Normal View History

2021-06-15 00:09:37 +02:00
BEGIN TRANSACTION;
2021-06-15 07:03:37 +02:00
/* Add locked field */
2021-06-15 00:09:37 +02:00
CREATE TABLE "sqlb_temp_table_13" (
"userID" TEXT NOT NULL,
"userName" TEXT NOT NULL,
2021-06-15 07:03:37 +02:00
"locked" INTEGER NOT NULL default '0'
2021-06-15 00:09:37 +02:00
);
INSERT INTO sqlb_temp_table_13 SELECT "userID", "userName", 0 FROM "userNames";
DROP TABLE "userNames";
ALTER TABLE sqlb_temp_table_13 RENAME TO "userNames";
UPDATE "config" SET value = 13 WHERE key = 'version';
COMMIT;