Merge pull request #9529 from appwrite/feat-migration-read-db

Migration read from db
This commit is contained in:
Jake Barnby 2025-03-18 08:01:07 +00:00 committed by GitHub
commit 8a77eaf2bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 24 additions and 21 deletions

View file

@ -60,7 +60,7 @@
"utopia-php/locale": "0.4.*", "utopia-php/locale": "0.4.*",
"utopia-php/logger": "0.6.*", "utopia-php/logger": "0.6.*",
"utopia-php/messaging": "0.16.*", "utopia-php/messaging": "0.16.*",
"utopia-php/migration": "0.6.*", "utopia-php/migration": "0.8.*",
"utopia-php/orchestration": "0.9.*", "utopia-php/orchestration": "0.9.*",
"utopia-php/platform": "0.7.*", "utopia-php/platform": "0.7.*",
"utopia-php/pools": "0.5.*", "utopia-php/pools": "0.5.*",

40
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "44c6436ced36b0b026139edba252052e", "content-hash": "ef36941f461409608974a804999f6787",
"packages": [ "packages": [
{ {
"name": "adhocore/jwt", "name": "adhocore/jwt",
@ -4159,16 +4159,16 @@
}, },
{ {
"name": "utopia-php/migration", "name": "utopia-php/migration",
"version": "0.6.22", "version": "0.8.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/utopia-php/migration.git", "url": "https://github.com/utopia-php/migration.git",
"reference": "a0269746bd318ff0993f5aa008675b971689d5b5" "reference": "36ec7af2e6bf78de5d86e1b0a953fd7dcdf69dab"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/utopia-php/migration/zipball/a0269746bd318ff0993f5aa008675b971689d5b5", "url": "https://api.github.com/repos/utopia-php/migration/zipball/36ec7af2e6bf78de5d86e1b0a953fd7dcdf69dab",
"reference": "a0269746bd318ff0993f5aa008675b971689d5b5", "reference": "36ec7af2e6bf78de5d86e1b0a953fd7dcdf69dab",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -4209,9 +4209,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/utopia-php/migration/issues", "issues": "https://github.com/utopia-php/migration/issues",
"source": "https://github.com/utopia-php/migration/tree/0.6.22" "source": "https://github.com/utopia-php/migration/tree/0.8.1"
}, },
"time": "2025-03-13T07:35:55+00:00" "time": "2025-03-18T07:48:08+00:00"
}, },
{ {
"name": "utopia-php/mongo", "name": "utopia-php/mongo",
@ -4760,16 +4760,16 @@
}, },
{ {
"name": "utopia-php/telemetry", "name": "utopia-php/telemetry",
"version": "0.1.0", "version": "0.1.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/utopia-php/telemetry.git", "url": "https://github.com/utopia-php/telemetry.git",
"reference": "d35f2f0632f4ee0be63fb7ace6a94a6adda71a80" "reference": "437f0021777f0e575dfb9e8a1a081b3aed75e33f"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/utopia-php/telemetry/zipball/d35f2f0632f4ee0be63fb7ace6a94a6adda71a80", "url": "https://api.github.com/repos/utopia-php/telemetry/zipball/437f0021777f0e575dfb9e8a1a081b3aed75e33f",
"reference": "d35f2f0632f4ee0be63fb7ace6a94a6adda71a80", "reference": "437f0021777f0e575dfb9e8a1a081b3aed75e33f",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -4790,7 +4790,7 @@
"type": "library", "type": "library",
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Utopia\\": "src/" "Utopia\\Telemetry\\": "src/Telemetry"
} }
}, },
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
@ -4804,9 +4804,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/utopia-php/telemetry/issues", "issues": "https://github.com/utopia-php/telemetry/issues",
"source": "https://github.com/utopia-php/telemetry/tree/0.1.0" "source": "https://github.com/utopia-php/telemetry/tree/0.1.1"
}, },
"time": "2024-11-13T10:29:53+00:00" "time": "2025-03-17T11:57:52+00:00"
}, },
{ {
"name": "utopia-php/vcs", "name": "utopia-php/vcs",
@ -5043,16 +5043,16 @@
"packages-dev": [ "packages-dev": [
{ {
"name": "appwrite/sdk-generator", "name": "appwrite/sdk-generator",
"version": "0.40.7", "version": "0.40.9",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/appwrite/sdk-generator.git", "url": "https://github.com/appwrite/sdk-generator.git",
"reference": "9e89b0bc4d8e6c81817d27096629f34a149fa873" "reference": "dbb45a5db22cdc3368fe2573c07ba6088f188fa4"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/9e89b0bc4d8e6c81817d27096629f34a149fa873", "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/dbb45a5db22cdc3368fe2573c07ba6088f188fa4",
"reference": "9e89b0bc4d8e6c81817d27096629f34a149fa873", "reference": "dbb45a5db22cdc3368fe2573c07ba6088f188fa4",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -5088,9 +5088,9 @@
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms", "description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
"support": { "support": {
"issues": "https://github.com/appwrite/sdk-generator/issues", "issues": "https://github.com/appwrite/sdk-generator/issues",
"source": "https://github.com/appwrite/sdk-generator/tree/0.40.7" "source": "https://github.com/appwrite/sdk-generator/tree/0.40.9"
}, },
"time": "2025-03-12T08:43:55+00:00" "time": "2025-03-17T18:39:14+00:00"
}, },
{ {
"name": "doctrine/annotations", "name": "doctrine/annotations",

View file

@ -34,6 +34,9 @@ class Migrations extends Action
protected Document $project; protected Document $project;
/**
* @var callable
*/
protected $logError; protected $logError;
public static function getName(): string public static function getName(): string