File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111use Appwrite \Services \Teams ;
1212use Appwrite \Services \Users ;
1313use Utopia \Database \Database as UtopiaDatabase ;
14- use Utopia \Database \DateTime as DbDateTime ;
14+ use Utopia \Database \DateTime as UtopiaDateTime ;
1515use Utopia \Migration \Exception ;
1616use Utopia \Migration \Resource ;
1717use Utopia \Migration \Resources \Auth \Hash ;
@@ -922,8 +922,8 @@ private function exportIndexes(int $batchSize): void
922922 $ index ['attributes ' ],
923923 [],
924924 $ index ['orders ' ],
925- $ index ['$createdAt ' ] = empty ($ index ['$createdAt ' ]) ? DbDateTime ::now () : $ index ['$createdAt ' ],
926- $ index ['$updatedAt ' ] = empty ($ index ['$updatedAt ' ]) ? DbDateTime ::now () : $ index ['$updatedAt ' ],
925+ $ index ['$createdAt ' ] = empty ($ index ['$createdAt ' ]) ? UtopiaDateTime ::now () : $ index ['$createdAt ' ],
926+ $ index ['$updatedAt ' ] = empty ($ index ['$updatedAt ' ]) ? UtopiaDateTime ::now () : $ index ['$updatedAt ' ],
927927 );
928928 }
929929
You can’t perform that action at this time.
0 commit comments