Skip to content

Commit

Permalink
🐛 Fix path for SQL scripts in create catalog method
Browse files Browse the repository at this point in the history
  • Loading branch information
fblaser committed Mar 18, 2024
1 parent bd23ecd commit 228f6d2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Catalog.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ public function create(string $catName): int
$rootPrivileges = $this->connection->query("SELECT * FROM mysql.global_priv WHERE User='{$this->dbUser}' AND Host='%';");

$scripts = [
'src/create_catalog_sql/mysql_system_tables.sql',
'src/create_catalog_sql/mysql_performance_tables.sql',
'src/create_catalog_sql/mysql_system_tables_data.sql',
'src/create_catalog_sql/maria_add_gis_sp.sql',
'src/create_catalog_sql/mysql_sys_schema.sql',
__DIR__ . '/create_catalog_sql/mysql_system_tables.sql',
__DIR__ . '/create_catalog_sql/mysql_performance_tables.sql',
__DIR__ . '/create_catalog_sql/mysql_system_tables_data.sql',
__DIR__ . '/create_catalog_sql/maria_add_gis_sp.sql',
__DIR__ . '/create_catalog_sql/mysql_sys_schema.sql',
];
$this->connection->exec('CREATE CATALOG IF NOT EXISTS ' . $catName);
$this->connection->exec('USE CATALOG ' . $catName);
Expand Down

0 comments on commit 228f6d2

Please sign in to comment.