File tree Expand file tree Collapse file tree 5 files changed +6
-33
lines changed Expand file tree Collapse file tree 5 files changed +6
-33
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,12 @@ public function compileDrop(SqlEntity $entity): string
40
40
41
41
abstract protected function compileViewCreate (View $ entity ): string ;
42
42
43
- abstract protected function compileViewDrop (View $ entity ): string ;
43
+ protected function compileViewDrop (View $ entity ): string
44
+ {
45
+ return <<<SQL
46
+ DROP VIEW IF EXISTS {$ entity ->name ()}
47
+ SQL ;
48
+ }
44
49
45
50
/** @param list<string>|null $columns */
46
51
protected function compileColumnsList (?array $ columns ): string
Original file line number Diff line number Diff line change @@ -21,12 +21,4 @@ protected function compileViewCreate(View $entity): string
21
21
{$ checkOption }
22
22
SQL ;
23
23
}
24
-
25
- #[Override]
26
- protected function compileViewDrop (View $ entity ): string
27
- {
28
- return <<<SQL
29
- DROP VIEW IF EXISTS {$ entity ->name ()}
30
- SQL ;
31
- }
32
24
}
Original file line number Diff line number Diff line change @@ -21,12 +21,4 @@ protected function compileViewCreate(View $entity): string
21
21
{$ checkOption }
22
22
SQL ;
23
23
}
24
-
25
- #[Override]
26
- protected function compileViewDrop (View $ entity ): string
27
- {
28
- return <<<SQL
29
- DROP VIEW IF EXISTS {$ entity ->name ()}
30
- SQL ;
31
- }
32
24
}
Original file line number Diff line number Diff line change @@ -19,12 +19,4 @@ protected function compileViewCreate(View $entity): string
19
19
{$ entity ->toString ()}
20
20
SQL ;
21
21
}
22
-
23
- #[Override]
24
- protected function compileViewDrop (View $ entity ): string
25
- {
26
- return <<<SQL
27
- DROP VIEW IF EXISTS {$ entity ->name ()}
28
- SQL ;
29
- }
30
22
}
Original file line number Diff line number Diff line change @@ -21,12 +21,4 @@ protected function compileViewCreate(View $entity): string
21
21
{$ checkOption }
22
22
SQL ;
23
23
}
24
-
25
- #[Override]
26
- protected function compileViewDrop (View $ entity ): string
27
- {
28
- return <<<SQL
29
- DROP VIEW IF EXISTS {$ entity ->name ()}
30
- SQL ;
31
- }
32
24
}
You can’t perform that action at this time.
0 commit comments