forked from ElizarovEugene/TorrentMonitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.postgresql.sql
executable file
·31 lines (24 loc) · 1.13 KB
/
update.postgresql.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
CREATE SEQUENCE "auto_id_news" START 22;
CREATE TABLE "news" (
"id" INTEGER PRIMARY KEY NOT NULL DEFAULT nextval('auto_id_news'),
"text" TEXT NOT NULL,
"new" INTEGER NOT NULL DEFAULT '1'
);
DELETE FROM settings WHERE "id" = '1';
DELETE FROM settings WHERE "id" = '2';
DELETE FROM settings WHERE "id" = '4';
DELETE FROM settings WHERE "id" = '15';
INSERT INTO settings VALUES (4, 'sendWarning', '0');
INSERT INTO settings VALUES (19, 'serverAddress', '');
INSERT INTO settings VALUES (20, 'deleteDistribution', '0');
INSERT INTO settings VALUES (24, 'sendUpdate', '0');
INSERT INTO settings VALUES (25, 'sendUpdateEmail', '');
INSERT INTO settings VALUES (26, 'sendUpdatePushover', '');
INSERT INTO settings VALUES (27, 'sendWarningEmail', '');
INSERT INTO settings VALUES (28, 'sendWarningPushover', '');
INSERT INTO settings VALUES (29, 'debug', '0');
INSERT INTO settings VALUES (30, 'rss', '1');
ALTER TABLE torrent ADD COLUMN auto_update INTEGER NOT NULL DEFAULT '0';
ALTER TABLE credentials ADD COLUMN passkey varchar(255) DEFAULT NULL;
DELETE FROM settings WHERE "id" = '1';
ALTER TABLE torrent ALTER COLUMN torrent_id TYPE varchar(150);