Skip to content

Commit

Permalink
SQLiteで参照制約を有効にする
Browse files Browse the repository at this point in the history
  • Loading branch information
Chihiro Adachi committed Sep 15, 2017
1 parent c90ff31 commit cd39c15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Eccube/Doctrine/EventSubscriber/InitSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ public function postConnect(ConnectionEventArgs $args)
$db->executeQuery("SET SESSION time_zone = '+00:00'");
} elseif ($platform === 'postgresql') {
$db->executeQuery("SET TIME ZONE 'UTC'");
} elseif ($platform === 'sqlite') {
$db->executeQuery("PRAGMA foreign_keys = ON");
}
}
}

0 comments on commit cd39c15

Please sign in to comment.