mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-30 01:53:19 +00:00
17 lines
419 B
MySQL
17 lines
419 B
MySQL
|
.timeout 30000
|
||
|
|
||
|
BEGIN TRANSACTION;
|
||
|
|
||
|
ALTER TABLE client ADD COLUMN date_added INTEGER;
|
||
|
ALTER TABLE client ADD COLUMN date_modified INTEGER;
|
||
|
ALTER TABLE client ADD COLUMN comment TEXT;
|
||
|
|
||
|
CREATE TRIGGER tr_client_update AFTER UPDATE ON client
|
||
|
BEGIN
|
||
|
UPDATE client SET date_modified = (cast(strftime('%s', 'now') as int)) WHERE id = NEW.id;
|
||
|
END;
|
||
|
|
||
|
UPDATE info SET value = 11 WHERE property = 'version';
|
||
|
|
||
|
COMMIT;
|