mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-11 22:17:14 +03:00
Add remove feature to warnUser
This commit is contained in:
17
databases/_upgrade_sponsorTimes_5.sql
Normal file
17
databases/_upgrade_sponsorTimes_5.sql
Normal 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;
|
||||
Reference in New Issue
Block a user