Skip to content

Commit

Permalink
Merge pull request #1739 from haiwen/fix-sql
Browse files Browse the repository at this point in the history
[scripts] Fix default datetime issue in 6.0
  • Loading branch information
freeplant committed Sep 2, 2016
2 parents fad9fc2 + 9994ad9 commit 01e0571
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/upgrade/sql/6.0.0/mysql/seahub.sql
@@ -1,5 +1,5 @@
ALTER TABLE api2_tokenv2 ADD COLUMN wiped_at DATETIME DEFAULT NULL;
ALTER TABLE api2_tokenv2 ADD COLUMN created_at DATETIME NOT NULL;
ALTER TABLE api2_tokenv2 ADD COLUMN created_at DATETIME NOT NULL DEFAULT "1970-01-01 00:00:00";

CREATE TABLE IF NOT EXISTS `base_filecomment` (
`id` int(11) NOT NULL AUTO_INCREMENT,
Expand Down
2 changes: 1 addition & 1 deletion scripts/upgrade/sql/6.0.0/sqlite3/seahub.sql
Expand Up @@ -21,4 +21,4 @@ CREATE INDEX IF NOT EXISTS "invitations_invitation_94a08da1" ON "invitations_inv
CREATE INDEX IF NOT EXISTS "invitations_invitation_d5dd16f8" ON "invitations_invitation" ("inviter");

ALTER TABLE api2_tokenv2 ADD COLUMN wiped_at datetime DEFAULT NULL;
ALTER TABLE api2_tokenv2 ADD COLUMN created_at datetime NOT NULL DEFAULT '0000-00-00 00:00:00';
ALTER TABLE api2_tokenv2 ADD COLUMN created_at datetime NOT NULL DEFAULT '1970-01-01 00:00:00';

0 comments on commit 01e0571

Please sign in to comment.