Bump version

This commit is contained in:
Jake Barnby committed 2025-07-18 21:38:35 +12:00
1 parent ec2ef72876
commit 97a4e5f355
6 files changed
+32 -10

No files matched your search

+1
View File
@@ -120,6 +120,7 @@ abstract class Migration
* @param Document $project
* @param Database $dbForProject
* @param Database $dbForPlatform
* @param callable|null $getProjectDB
* @return self
*/
public function setProject(
+2 -2
View File
@@ -51,12 +51,12 @@ class Migrate extends Action
Authorization::disable();
if (!\array_key_exists($version, Migration::$versions)) {
Console::error("Version {$version} not found.");
Console::error("No migration found for version $version.");
Console::exit(1);
return;
}
Console::success('Starting Data Migration to version ' . $version);
Console::success('Starting data migration to version ' . $version);
$class = 'Appwrite\\Migration\\Version\\' . Migration::$versions[$version];
+22 -1
View File
@@ -64,7 +64,28 @@ class SDKs extends Action
$message ??= Console::confirm('Please enter your commit message:');
}
if (!\in_array($version, ['0.6.x', '0.7.x', '0.8.x', '0.9.x', '0.10.x', '0.11.x', '0.12.x', '0.13.x', '0.14.x', '0.15.x', '1.0.x', '1.1.x', '1.2.x', '1.3.x', '1.4.x', '1.5.x', '1.6.x', '1.7.x', '1.8.x', 'latest'])) {
if (!\in_array($version, [
'0.6.x',
'0.7.x',
'0.8.x',
'0.9.x',
'0.10.x',
'0.11.x',
'0.12.x',
'0.13.x',
'0.14.x',
'0.15.x',
'1.0.x',
'1.1.x',
'1.2.x',
'1.3.x',
'1.4.x',
'1.5.x',
'1.6.x',
'1.7.x',
'1.8.x',
'latest'
])) {
throw new \Exception('Unknown version given');
}