mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Add resourceId to migration collections.php
This commit is contained in:
parent
6a717f2272
commit
d9da0dd671
2 changed files with 25 additions and 22 deletions
32
composer.lock
generated
32
composer.lock
generated
|
|
@ -2175,12 +2175,12 @@
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/utopia-php/migration.git",
|
"url": "https://github.com/utopia-php/migration.git",
|
||||||
"reference": "2b491d582f316ca7670c4c23f01259482c0ff2a3"
|
"reference": "a7dc26f65866d022451a17860d50e29123edd7e4"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/utopia-php/migration/zipball/2b491d582f316ca7670c4c23f01259482c0ff2a3",
|
"url": "https://api.github.com/repos/utopia-php/migration/zipball/a7dc26f65866d022451a17860d50e29123edd7e4",
|
||||||
"reference": "2b491d582f316ca7670c4c23f01259482c0ff2a3",
|
"reference": "a7dc26f65866d022451a17860d50e29123edd7e4",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
|
@ -2222,7 +2222,7 @@
|
||||||
"issues": "https://github.com/utopia-php/migration/issues",
|
"issues": "https://github.com/utopia-php/migration/issues",
|
||||||
"source": "https://github.com/utopia-php/migration/tree/backups"
|
"source": "https://github.com/utopia-php/migration/tree/backups"
|
||||||
},
|
},
|
||||||
"time": "2024-06-26T07:48:24+00:00"
|
"time": "2024-07-15T11:52:33+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "utopia-php/mongo",
|
"name": "utopia-php/mongo",
|
||||||
|
|
@ -3165,16 +3165,16 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "laravel/pint",
|
"name": "laravel/pint",
|
||||||
"version": "v1.16.1",
|
"version": "v1.16.2",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/laravel/pint.git",
|
"url": "https://github.com/laravel/pint.git",
|
||||||
"reference": "9266a47f1b9231b83e0cfd849009547329d871b1"
|
"reference": "51f1ba679a6afe0315621ad143d788bd7ded0eca"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/laravel/pint/zipball/9266a47f1b9231b83e0cfd849009547329d871b1",
|
"url": "https://api.github.com/repos/laravel/pint/zipball/51f1ba679a6afe0315621ad143d788bd7ded0eca",
|
||||||
"reference": "9266a47f1b9231b83e0cfd849009547329d871b1",
|
"reference": "51f1ba679a6afe0315621ad143d788bd7ded0eca",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
|
@ -3227,7 +3227,7 @@
|
||||||
"issues": "https://github.com/laravel/pint/issues",
|
"issues": "https://github.com/laravel/pint/issues",
|
||||||
"source": "https://github.com/laravel/pint"
|
"source": "https://github.com/laravel/pint"
|
||||||
},
|
},
|
||||||
"time": "2024-06-18T16:50:05+00:00"
|
"time": "2024-07-09T15:58:08+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "matthiasmullie/minify",
|
"name": "matthiasmullie/minify",
|
||||||
|
|
@ -3415,16 +3415,16 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "nikic/php-parser",
|
"name": "nikic/php-parser",
|
||||||
"version": "v5.0.2",
|
"version": "v5.1.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/nikic/PHP-Parser.git",
|
"url": "https://github.com/nikic/PHP-Parser.git",
|
||||||
"reference": "139676794dc1e9231bf7bcd123cfc0c99182cb13"
|
"reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/139676794dc1e9231bf7bcd123cfc0c99182cb13",
|
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/683130c2ff8c2739f4822ff7ac5c873ec529abd1",
|
||||||
"reference": "139676794dc1e9231bf7bcd123cfc0c99182cb13",
|
"reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
|
@ -3435,7 +3435,7 @@
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"ircmaxell/php-yacc": "^0.0.7",
|
"ircmaxell/php-yacc": "^0.0.7",
|
||||||
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0"
|
"phpunit/phpunit": "^9.0"
|
||||||
},
|
},
|
||||||
"bin": [
|
"bin": [
|
||||||
"bin/php-parse"
|
"bin/php-parse"
|
||||||
|
|
@ -3467,9 +3467,9 @@
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/nikic/PHP-Parser/issues",
|
"issues": "https://github.com/nikic/PHP-Parser/issues",
|
||||||
"source": "https://github.com/nikic/PHP-Parser/tree/v5.0.2"
|
"source": "https://github.com/nikic/PHP-Parser/tree/v5.1.0"
|
||||||
},
|
},
|
||||||
"time": "2024-03-05T20:51:40+00:00"
|
"time": "2024-07-01T20:03:41+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phar-io/manifest",
|
"name": "phar-io/manifest",
|
||||||
|
|
|
||||||
|
|
@ -313,12 +313,15 @@ class Migrations extends Action
|
||||||
$log->addBreadcrumb(new Breadcrumb("debug", "migration", "Migration hit stage 'migrating'", \microtime(true)));
|
$log->addBreadcrumb(new Breadcrumb("debug", "migration", "Migration hit stage 'migrating'", \microtime(true)));
|
||||||
$this->updateMigrationDocument($migration, $projectDocument);
|
$this->updateMigrationDocument($migration, $projectDocument);
|
||||||
|
|
||||||
$transfer->run($migration->getAttribute('resources'), function () use ($migration, $transfer, $projectDocument) {
|
$transfer->run(
|
||||||
$migration->setAttribute('resourceData', json_encode($transfer->getCache()));
|
$migration->getAttribute('resources'),
|
||||||
$migration->setAttribute('statusCounters', json_encode($transfer->getStatusCounters()));
|
function () use ($migration, $transfer, $projectDocument) {
|
||||||
|
$migration->setAttribute('resourceData', json_encode($transfer->getCache()));
|
||||||
$this->updateMigrationDocument($migration, $projectDocument);
|
$migration->setAttribute('statusCounters', json_encode($transfer->getStatusCounters()));
|
||||||
});
|
$this->updateMigrationDocument($migration, $projectDocument);
|
||||||
|
},
|
||||||
|
$migration->getAttribute('resourceId', '')
|
||||||
|
);
|
||||||
|
|
||||||
$destination->shutDown();
|
$destination->shutDown();
|
||||||
$source->shutDown();
|
$source->shutDown();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue