picodb(mssql): fix disable/enable foreign keys by removing GO

This commit is contained in:
Joe Nahmias 2022-07-08 12:09:01 -04:00 committed by Frédéric Guillot
parent 0047efe803
commit 5493c2997e
1 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ class Mssql extends Base
*/
public function enableForeignKeys()
{
$this->pdo->exec('EXEC sp_MSforeachtable @command1="ALTER TABLE ? CHECK CONSTRAINT ALL"; GO;');
$this->pdo->exec('EXEC sp_MSforeachtable @command1="ALTER TABLE ? CHECK CONSTRAINT ALL";');
}
/**
@ -71,7 +71,7 @@ class Mssql extends Base
*/
public function disableForeignKeys()
{
$this->pdo->exec('EXEC sp_MSforeachtable @command1="ALTER TABLE ? NOCHECK CONSTRAINT ALL"; GO;');
$this->pdo->exec('EXEC sp_MSforeachtable @command1="ALTER TABLE ? NOCHECK CONSTRAINT ALL";');
}
/**