1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-01-07 06:30:55 +00:00
pi-hole/advanced/Scripts/database_migration/gravity/1_to_2.sql
Christian König fafd47ba75
Please editorconfig-checker
Signed-off-by: Christian König <ckoenig@posteo.de>
2024-07-02 20:57:28 +02:00

15 lines
283 B
SQL

.timeout 30000
BEGIN TRANSACTION;
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';
COMMIT;