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;