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:
Steven Nguyen authored and GitHub committed 2024-06-20 23:00:49 +00:00
1 parent 868e57a9a3
commit 72f8b2001f
1 file changed
+1
+1
View File
@@ -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))