mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
fix: pass variableId to Functions::createVariable and Sites::createVariable
SDK 23.1 added a required \$variableId 2nd parameter: - Sites::createVariable(\$siteId, \$variableId, \$key, \$value, ?\$secret) - Functions::createVariable(\$functionId, \$variableId, \$key, \$value, ?\$secret) Pass the migration resource's id as \$variableId so the destination preserves the source variable id. Bumps appwrite/appwrite to 23.1.0 in composer.lock.
This commit is contained in:
1 parent
80e9a0498e
commit
0e88268d10
2 files changed
+8
-6
No files matched your search
Generated
+6
-6
@@ -8,16 +8,16 @@
|
|||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "appwrite/appwrite",
|
"name": "appwrite/appwrite",
|
||||||
"version": "23.0.0",
|
"version": "23.1.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/appwrite/sdk-for-php.git",
|
"url": "https://github.com/appwrite/sdk-for-php.git",
|
||||||
"reference": "d22b36167931294bec4259f0803aba14537030ec"
|
"reference": "2f275921f10ceb7cff99f2d463f7328b296234fa"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/appwrite/sdk-for-php/zipball/d22b36167931294bec4259f0803aba14537030ec",
|
"url": "https://api.github.com/repos/appwrite/sdk-for-php/zipball/2f275921f10ceb7cff99f2d463f7328b296234fa",
|
||||||
"reference": "d22b36167931294bec4259f0803aba14537030ec",
|
"reference": "2f275921f10ceb7cff99f2d463f7328b296234fa",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -43,10 +43,10 @@
|
|||||||
"support": {
|
"support": {
|
||||||
"email": "team@appwrite.io",
|
"email": "team@appwrite.io",
|
||||||
"issues": "https://github.com/appwrite/sdk-for-php/issues",
|
"issues": "https://github.com/appwrite/sdk-for-php/issues",
|
||||||
"source": "https://github.com/appwrite/sdk-for-php/tree/23.0.0",
|
"source": "https://github.com/appwrite/sdk-for-php/tree/23.1.0",
|
||||||
"url": "https://appwrite.io/support"
|
"url": "https://appwrite.io/support"
|
||||||
},
|
},
|
||||||
"time": "2026-04-16T12:38:44+00:00"
|
"time": "2026-05-08T13:44:58+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "brick/math",
|
"name": "brick/math",
|
||||||
|
|||||||
@@ -2327,6 +2327,7 @@ class Appwrite extends Destination
|
|||||||
/** @var EnvVar $resource */
|
/** @var EnvVar $resource */
|
||||||
$this->functions->createVariable(
|
$this->functions->createVariable(
|
||||||
$resource->getFunc()->getId(),
|
$resource->getFunc()->getId(),
|
||||||
|
$resource->getId(),
|
||||||
$resource->getKey(),
|
$resource->getKey(),
|
||||||
$resource->getValue()
|
$resource->getValue()
|
||||||
);
|
);
|
||||||
@@ -2576,6 +2577,7 @@ class Appwrite extends Destination
|
|||||||
/** @var SiteEnvVar $resource */
|
/** @var SiteEnvVar $resource */
|
||||||
$this->sites->createVariable(
|
$this->sites->createVariable(
|
||||||
$resource->getSite()->getId(),
|
$resource->getSite()->getId(),
|
||||||
|
$resource->getId(),
|
||||||
$resource->getKey(),
|
$resource->getKey(),
|
||||||
$resource->getValue()
|
$resource->getValue()
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user