diff --git a/app/cli.php b/app/cli.php index 655ea68a4c..da7d23c18d 100644 --- a/app/cli.php +++ b/app/cli.php @@ -102,6 +102,7 @@ CLI::setResource('getProjectDB', function (Group $pools, Database $dbForConsole, try { $dsn = new DSN($project->getAttribute('database')); } catch (\InvalidArgumentException) { + // TODO: Temporary until all projects are using shared tables $dsn = new DSN('mysql://' . $project->getAttribute('database')); } diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index 532a6d5b28..896d6b8ce6 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -223,6 +223,7 @@ App::post('/v1/projects') try { $dsn = new DSN($dsn); } catch (\InvalidArgumentException) { + // TODO: Temporary until all projects are using shared tables $dsn = new DSN('mysql://' . $dsn); } diff --git a/app/init.php b/app/init.php index 4bb2d5fc67..847c67bebc 100644 --- a/app/init.php +++ b/app/init.php @@ -1305,6 +1305,7 @@ App::setResource('dbForProject', function (Group $pools, Database $dbForConsole, try { $dsn = new DSN($project->getAttribute('database')); } catch (\InvalidArgumentException) { + // TODO: Temporary until all projects are using shared tables $dsn = new DSN('mysql://' . $project->getAttribute('database')); } @@ -1323,6 +1324,7 @@ App::setResource('dbForProject', function (Group $pools, Database $dbForConsole, try { $dsn = new DSN($project->getAttribute('database')); } catch (\InvalidArgumentException) { + // TODO: Temporary until all projects are using shared tables $dsn = new DSN('mysql://' . $project->getAttribute('database')); } @@ -1369,6 +1371,7 @@ App::setResource('getProjectDB', function (Group $pools, Database $dbForConsole, try { $dsn = new DSN($project->getAttribute('database')); } catch (\InvalidArgumentException) { + // TODO: Temporary until all projects are using shared tables $dsn = new DSN('mysql://' . $project->getAttribute('database')); } diff --git a/app/realtime.php b/app/realtime.php index dd22ef8165..edf83a5694 100644 --- a/app/realtime.php +++ b/app/realtime.php @@ -81,6 +81,7 @@ if (!function_exists("getProjectDB")) { try { $dsn = new DSN($project->getAttribute('database')); } catch (\InvalidArgumentException) { + // TODO: Temporary until all projects are using shared tables $dsn = new DSN('mysql://' . $project->getAttribute('database')); } diff --git a/app/worker.php b/app/worker.php index edb8480d00..d698a824ac 100644 --- a/app/worker.php +++ b/app/worker.php @@ -76,6 +76,7 @@ Server::setResource('dbForProject', function (Cache $cache, Registry $register, try { $dsn = new DSN($project->getAttribute('database')); } catch (\InvalidArgumentException) { + // TODO: Temporary until all projects are using shared tables $dsn = new DSN('mysql://' . $project->getAttribute('database')); } @@ -89,6 +90,7 @@ Server::setResource('dbForProject', function (Cache $cache, Registry $register, try { $dsn = new DSN($project->getAttribute('database')); } catch (\InvalidArgumentException) { + // TODO: Temporary until all projects are using shared tables $dsn = new DSN('mysql://' . $project->getAttribute('database')); } @@ -118,6 +120,7 @@ Server::setResource('getProjectDB', function (Group $pools, Database $dbForConso try { $dsn = new DSN($project->getAttribute('database')); } catch (\InvalidArgumentException) { + // TODO: Temporary until all projects are using shared tables $dsn = new DSN('mysql://' . $project->getAttribute('database')); }