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.
1 parent e22aa9b commit d6e16a7Copy full SHA for d6e16a7
src/Grammars/PostgresGrammar.php
@@ -22,12 +22,4 @@ protected function compileViewCreate(View $entity): string
22
{$checkOption}
23
SQL;
24
}
25
-
26
- #[Override]
27
- protected function compileViewDrop(View $entity): string
28
- {
29
- return <<<SQL
30
- DROP VIEW IF EXISTS {$entity->name()} CASCADE
31
- SQL;
32
- }
33
tests/Unit/Grammars/PostgresGrammarTest.php
@@ -72,6 +72,6 @@
72
$sql = test()->grammar->compileDrop(test()->entity);
73
74
expect($sql)->toBe(<<<'SQL'
75
- DROP VIEW IF EXISTS user_view CASCADE
+ DROP VIEW IF EXISTS user_view
76
SQL);
77
});
0 commit comments