appwrite-utils-cli 1.3.4 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -336,12 +336,12 @@ export const createOrUpdateAttribute = async (db, dbId, collection, attribute) =
|
|
336
336
|
case "double":
|
337
337
|
case "float": // Backward compatibility
|
338
338
|
if (action === "create") {
|
339
|
-
await tryAwaitWithRetry(async () => await db.createFloatAttribute(dbId, collection.$id, finalAttribute.key, finalAttribute.required || false, finalAttribute.min
|
339
|
+
await tryAwaitWithRetry(async () => await db.createFloatAttribute(dbId, collection.$id, finalAttribute.key, finalAttribute.required || false, finalAttribute.min, finalAttribute.max, finalAttribute.xdefault !== undefined && !finalAttribute.required
|
340
340
|
? finalAttribute.xdefault
|
341
341
|
: null, finalAttribute.array || false));
|
342
342
|
}
|
343
343
|
else {
|
344
|
-
await tryAwaitWithRetry(async () => await db.updateFloatAttribute(dbId, collection.$id, finalAttribute.key, finalAttribute.required || false, finalAttribute.min
|
344
|
+
await tryAwaitWithRetry(async () => await db.updateFloatAttribute(dbId, collection.$id, finalAttribute.key, finalAttribute.required || false, finalAttribute.min, finalAttribute.max, finalAttribute.xdefault !== undefined && !finalAttribute.required
|
345
345
|
? finalAttribute.xdefault
|
346
346
|
: null));
|
347
347
|
}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "appwrite-utils-cli",
|
3
3
|
"description": "Appwrite Utility Functions to help with database management, data conversion, data import, migrations, and much more. Meant to be used as a CLI tool, I do not recommend installing this in frontend environments.",
|
4
|
-
"version": "1.3.
|
4
|
+
"version": "1.3.5",
|
5
5
|
"main": "src/main.ts",
|
6
6
|
"type": "module",
|
7
7
|
"repository": {
|
@@ -553,8 +553,8 @@ export const createOrUpdateAttribute = async (
|
|
553
553
|
collection.$id,
|
554
554
|
finalAttribute.key,
|
555
555
|
finalAttribute.required || false,
|
556
|
-
finalAttribute.min
|
557
|
-
finalAttribute.max
|
556
|
+
finalAttribute.min,
|
557
|
+
finalAttribute.max,
|
558
558
|
finalAttribute.xdefault !== undefined && !finalAttribute.required
|
559
559
|
? finalAttribute.xdefault
|
560
560
|
: null,
|
@@ -569,8 +569,8 @@ export const createOrUpdateAttribute = async (
|
|
569
569
|
collection.$id,
|
570
570
|
finalAttribute.key,
|
571
571
|
finalAttribute.required || false,
|
572
|
-
finalAttribute.min
|
573
|
-
finalAttribute.max
|
572
|
+
finalAttribute.min,
|
573
|
+
finalAttribute.max,
|
574
574
|
finalAttribute.xdefault !== undefined && !finalAttribute.required
|
575
575
|
? finalAttribute.xdefault
|
576
576
|
: null
|