kitinfo-timers-data/timers.db3.sqldump

14 lines
1.5 KiB
Plaintext
Raw Normal View History

PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE [timers] ([id] INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL UNIQUE, [event] TEXT NOT NULL, [message] TEXT DEFAULT('Viel Glück!'), [day] INTEGER NOT NULL, [month] INTEGER NOT NULL, [year] INTEGER NOT NULL, [hour] INTEGER NOT NULL, [minute] INTEGER NOT NULL DEFAULT(0), [second] INTEGER NOT NULL DEFAULT(0));
INSERT INTO timers VALUES(1,'Klausur Numerische Mathematik','http://www.math.kit.edu/ianm3/lehre/numaing2018s/de',19,9,2018,14,0,0);
INSERT INTO timers VALUES(2,'Klausur Rechnernetze','https://telematics.tm.kit.edu/eir.php',14,8,2018,11,0,0);
INSERT INTO timers VALUES(3,'Klausur Datenbanksysteme','https://ilias.studium.kit.edu/ilias.php?ref_id=814897&cmd=frameset&cmdClass=ilrepositorygui&cmdNode=k8&baseClass=ilrepositorygui',31,7,2018,0,0,0);
INSERT INTO timers VALUES(4,'Hauptklausur Sicherheit','https://crypto.iti.kit.edu/index.php?id=842',3,8,2018,0,0,0);
INSERT INTO timers VALUES(5,'Nachklausur Sicherheit','https://crypto.iti.kit.edu/index.php?id=842',5,10,2018,0,0,0);
INSERT INTO timers VALUES(6,'Klausur Lineare Algebra 2','Viel Glück!',13,9,2018,0,0,0);
DELETE FROM sqlite_sequence;
INSERT INTO sqlite_sequence VALUES('timers',33);
CREATE VIEW [active] AS SELECT * FROM timers WHERE date ( substr ( '0000' || year , - 4 , 4 ) || '-' || substr ( '00' || month , - 2 , 2 ) || '-' || substr ( '00' || day , - 2 , 2 ) ) >= date ( 'now' , '-3 days' , 'start of day' ) ORDER BY year ASC , month ASC , day ASC , hour ASC , minute ASC , second ASC;
COMMIT;