From 0f0ee37bc2ccc30d2c3b19d8837c8b447b9998e5 Mon Sep 17 00:00:00 2001 From: peter Date: Sun, 22 Sep 2019 17:52:02 +0800 Subject: [PATCH] update mysql.sql --- sql/mysql/mysql.sql | 2 ++ sql/mysql/patch/005.sql | 1 + 2 files changed, 3 insertions(+) diff --git a/sql/mysql/mysql.sql b/sql/mysql/mysql.sql index c374dd866..87fc089d4 100644 --- a/sql/mysql/mysql.sql +++ b/sql/mysql/mysql.sql @@ -1,6 +1,8 @@ DROP DATABASE IF EXISTS cboard; CREATE DATABASE cboard CHARACTER SET utf8; USE cboard; +SET SQL_MODE='ALLOW_INVALID_DATES'; +SET SQL_SAFE_UPDATES = 0; CREATE TABLE dashboard_board ( board_id bigint(20) NOT NULL AUTO_INCREMENT, diff --git a/sql/mysql/patch/005.sql b/sql/mysql/patch/005.sql index bbab0b039..138e8ae48 100644 --- a/sql/mysql/patch/005.sql +++ b/sql/mysql/patch/005.sql @@ -1,3 +1,4 @@ +SET SQL_MODE='ALLOW_INVALID_DATES'; -- 升级0.4需要执行的 ALTER TABLE dashboard_dataset ADD create_time TIMESTAMP DEFAULT now(); ALTER TABLE dashboard_dataset ADD update_time TIMESTAMP;