pi-hole/advanced/Scripts/database_migration/gravity/1_to_2.sql
2019-07-07 21:21:56 +02:00

8 lines
229 B
SQL

CREATE TABLE domain_audit
(
id INTEGER PRIMARY KEY AUTOINCREMENT,
domain TEXT UNIQUE NOT NULL,
date_added INTEGER NOT NULL DEFAULT (cast(strftime('%s', 'now') as int))
);
UPDATE info SET value = 2 WHERE property = 'version';