From 953bdc95d8db9ed429350c498b99129f10ad153f Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Thu, 14 Sep 2017 08:02:17 +0200 Subject: [PATCH] sql: set default value on triggers timestamps --- sql/2017-09-notifications.sql | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 sql/2017-09-notifications.sql diff --git a/sql/2017-09-notifications.sql b/sql/2017-09-notifications.sql new file mode 100644 index 0000000..6567136 --- /dev/null +++ b/sql/2017-09-notifications.sql @@ -0,0 +1,6 @@ +-- Recent additions to add after db init (.gz) +-- mysql yaamp -p < file.sql + +ALTER TABLE `notifications` CHANGE `lastchecked` `lastchecked` int(10) UNSIGNED NOT NULL DEFAULT '0'; +ALTER TABLE `notifications` CHANGE `lasttriggered` `lasttriggered` int(10) UNSIGNED NOT NULL DEFAULT '0'; +