Skip to content

Commit

Permalink
Fixing more issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed Jan 14, 2014
1 parent ecf1c35 commit 4e2367c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Cake/Database/Schema/SqlserverSchema.php
Expand Up @@ -254,6 +254,15 @@ public function convertForeignKeyDescription(Table $table, $row) {
$table->addConstraint($name, $data);
}

/**
* {@inheritdoc}
*
*/
protected function _foreignOnClause($on) {
$parent = parent::_foreignOnClause($on);
return $parent === Table::ACTION_RESTRICT ? Table::ACTION_SET_NULL : $parent;
}

/**
* {@inheritdoc}
*
Expand Down
2 changes: 1 addition & 1 deletion Cake/Test/TestCase/Database/Schema/SqlserverSchemaTest.php
Expand Up @@ -571,7 +571,7 @@ public function testCreateSql() {

$expected = <<<SQL
CREATE TABLE [schema_articles] (
[id] SERIAL,
[id] INTEGER NOT NULL,
[title] VARCHAR NOT NULL,
[body] TEXT,
[created] DATETIME,
Expand Down

0 comments on commit 4e2367c

Please sign in to comment.