Skip to content

Commit

Permalink
- static class dynamicly
Browse files Browse the repository at this point in the history
  • Loading branch information
Emre Akay committed Sep 14, 2024
1 parent 1aafed7 commit f29aca2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FlexyField.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ public static function dropAndCreatePivotViewForMysql(): void
'`'
)
) INTO @sql
FROM flexyfield.ff_values;
FROM ff_values;
";

$createViewSql = "
SET @create_view_sql = CONCAT(
'CREATE VIEW flexyfield.ff_values_pivot_view AS ',
'CREATE VIEW ff_values_pivot_view AS ',
'SELECT model_type, model_id, ', @sql, ' ',
'FROM flexyfield.ff_values ',
'FROM ff_values ',
'GROUP BY model_type, model_id'
);
Expand Down

0 comments on commit f29aca2

Please sign in to comment.