Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit d5d2848

Browse files
author
Indradeep Biswas
authored
Merge pull request #17 from InVisionApp/shar-1214-mysql57-compatiblity-for-timestamps
Made the TIMESTAMP columns NULLable for MySQL 5.7 compliance.
2 parents a8c7fb5 + 5f05ad2 commit d5d2848

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/mysql/mysql.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ func (m *MySQLBackend) createTable() error {
208208
`id INT NOT NULL PRIMARY KEY,`+
209209
`master_id CHAR(36) UNIQUE,`+
210210
`version VARCHAR(255),`+
211-
`started_at TIMESTAMP,`+
212-
`last_heartbeat TIMESTAMP`+
211+
`started_at TIMESTAMP NULL,`+
212+
`last_heartbeat TIMESTAMP NULL`+
213213
`);`, m.TableName)
214214

215215
m.log.Info("Attempting to create lock table")

0 commit comments

Comments
 (0)