Skip to content
Permalink
Browse files

Add disable/enable constraints for postgres.

Now that fixture constraints can be deferred, we can use the simple
version of disabling constraints.
  • Loading branch information...
markstory committed Sep 4, 2014
1 parent 4fe2266 commit 30e0e8eedd3866521dc945be74df536817cdea36
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/Database/Dialect/PostgresDialectTrait.php
@@ -141,11 +141,13 @@ public function schemaDialect() {
* {@inheritDoc}
*/
public function disableForeignKeySQL() {
return 'SET CONSTRAINTS ALL DEFERRED';
}
/**
* {@inheritDoc}
*/
public function enableForeignKeySQL() {
return 'SET CONSTRAINTS ALL IMMEDIATE';
}
}

0 comments on commit 30e0e8e

Please sign in to comment.
You can’t perform that action at this time.