From cd581c6fcdc24ac3c51f00ad97637f42df83cf38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sun, 5 Jul 2020 18:23:02 +0200 Subject: [PATCH] MAPG-142 fix timestamp onupdate issue --- .../structure/20200705_0218_fix_timestamp_onupdate.sql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 database/migrations/structure/20200705_0218_fix_timestamp_onupdate.sql diff --git a/database/migrations/structure/20200705_0218_fix_timestamp_onupdate.sql b/database/migrations/structure/20200705_0218_fix_timestamp_onupdate.sql new file mode 100644 index 0000000..bc99ba4 --- /dev/null +++ b/database/migrations/structure/20200705_0218_fix_timestamp_onupdate.sql @@ -0,0 +1,2 @@ +ALTER TABLE `sessions` + MODIFY `updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP;