mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
updated migration
This commit is contained in:
@@ -463,8 +463,7 @@ class Migrations extends Action
|
||||
*/
|
||||
$databaseOverride = '';
|
||||
$dbScheme = '';
|
||||
$project = $this->project;
|
||||
$region = $project->getAttribute('region');
|
||||
$region = $this->project->getAttribute('region');
|
||||
switch ($databaseType) {
|
||||
case 'documentsdb':
|
||||
$databases = Config::getParam('pools-documentsdb', []);
|
||||
@@ -474,7 +473,7 @@ class Migrations extends Action
|
||||
break;
|
||||
default:
|
||||
// legacy/tablesdb case where projects having the location of the database
|
||||
return $project->getAttribute('database');
|
||||
return $this->project->getAttribute('database');
|
||||
}
|
||||
|
||||
if ($region !== 'default') {
|
||||
|
||||
Reference in New Issue
Block a user