We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 42657be + 0058571 commit 4ccfd7aCopy full SHA for 4ccfd7a
src/Illuminate/Database/Schema/Grammars/SqlServerGrammar.php
@@ -320,9 +320,8 @@ public function compileDisableForeignKeyConstraints()
320
public function compileDropAllForeignKeys()
321
{
322
return "DECLARE @sql NVARCHAR(MAX) = N'';
323
- SELECT @sql += 'ALTER TABLE ' + QUOTENAME(OBJECT_SCHEMA_NAME(parent_object_id))
324
- + '.' + QUOTENAME(OBJECT_NAME(parent_object_id)) +
325
- ' DROP CONSTRAINT ' + QUOTENAME(name) + ';'
+ SELECT @sql += 'ALTER TABLE ' + QUOTENAME(OBJECT_NAME(parent_object_id))
+ + ' DROP CONSTRAINT ' + QUOTENAME(name) + ';'
326
FROM sys.foreign_keys;
327
328
EXEC sp_executesql @sql;";
0 commit comments