We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f8b5472 + 235fe53 commit 8a56e92Copy full SHA for 8a56e92
1 file changed
src/Migration/Sources/Appwrite.php
@@ -11,6 +11,7 @@
11
use Appwrite\Services\Teams;
12
use Appwrite\Services\Users;
13
use Utopia\Database\Database as UtopiaDatabase;
14
+use Utopia\Database\DateTime as UtopiaDateTime;
15
use Utopia\Migration\Exception;
16
use Utopia\Migration\Resource;
17
use Utopia\Migration\Resources\Auth\Hash;
@@ -921,8 +922,8 @@ private function exportIndexes(int $batchSize): void
921
922
$index['attributes'],
923
[],
924
$index['orders'],
- $index['$createdAt'],
925
- $index['$updatedAt'],
+ $index['$createdAt'] = empty($index['$createdAt']) ? UtopiaDateTime::now() : $index['$createdAt'],
926
+ $index['$updatedAt'] = empty($index['$updatedAt']) ? UtopiaDateTime::now() : $index['$updatedAt'],
927
);
928
}
929
0 commit comments