mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
fix: Disable validation for project DBs during migration
Skip the validation so that queries that typically fail can pass. This is fine because the validation is failing on internal attributes such as an $id for cache key with * and $id for attributes that are too long because we prefix the $id with the internal database and collection id.
This commit is contained in:
parent
868e57a9a3
commit
72f8b2001f
1 changed files with 1 additions and 0 deletions
|
|
@ -93,6 +93,7 @@ class Migrate extends Action
|
|||
// TODO: Iterate through all project DBs
|
||||
/** @var Database $projectDB */
|
||||
$projectDB = $getProjectDB($project);
|
||||
$projectDB->disableValidation();
|
||||
$migration
|
||||
->setProject($project, $projectDB, $dbForConsole)
|
||||
->setPDO($register->get('db', true))
|
||||
|
|
|
|||
Loading…
Reference in a new issue