Skip to content

Commit

Permalink
Remove DEFAULT CURRENT_TIMESTAMP from time scenes migration
Browse files Browse the repository at this point in the history
  • Loading branch information
fracz committed Jan 24, 2018
1 parent 77a8022 commit 9a4e099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/database/migrations/20171231151314_time_scenes.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function change() {
Application::getInstance()->db->getConnection()->update("UPDATE $table SET $actions = CONCAT('{\"0\":\"', $actions, '\"}');");

$this->table(PendingScene::TABLE_NAME)
->addColumn(PendingScene::EXECUTE_AFTER, 'timestamp')
->addColumn(PendingScene::EXECUTE_AFTER, 'timestamp', ['default' => '2018-01-01 00:00:00'])
->addColumn(PendingScene::ACTIONS, 'text')
->addColumn(PendingScene::SCENE_ID, 'uuid')
->addForeignKey(PendingScene::SCENE_ID, Scene::TABLE_NAME, Scene::ID, ['delete' => 'CASCADE'])
Expand Down

0 comments on commit 9a4e099

Please sign in to comment.