appwrite-utils-cli 1.2.28 → 1.2.29
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.
@@ -314,7 +314,7 @@ export const createOrUpdateAttribute = async (db, dbId, collection, attribute) =
|
|
314
314
|
BigInt(finalAttribute.max) === BigInt(9223372036854776000)) {
|
315
315
|
delete finalAttribute.max;
|
316
316
|
}
|
317
|
-
await tryAwaitWithRetry(async () => await db.createIntegerAttribute(dbId, collection.$id, finalAttribute.key, finalAttribute.required || false, finalAttribute.min
|
317
|
+
await tryAwaitWithRetry(async () => await db.createIntegerAttribute(dbId, collection.$id, finalAttribute.key, finalAttribute.required || false, finalAttribute.min !== undefined ? finalAttribute.min : -2147483647, finalAttribute.max !== undefined ? finalAttribute.max : 2147483647, finalAttribute.xdefault !== undefined && !finalAttribute.required
|
318
318
|
? finalAttribute.xdefault
|
319
319
|
: null, finalAttribute.array || false));
|
320
320
|
}
|
@@ -327,7 +327,7 @@ export const createOrUpdateAttribute = async (db, dbId, collection, attribute) =
|
|
327
327
|
BigInt(finalAttribute.max) === BigInt(9223372036854776000)) {
|
328
328
|
delete finalAttribute.max;
|
329
329
|
}
|
330
|
-
await tryAwaitWithRetry(async () => await db.updateIntegerAttribute(dbId, collection.$id, finalAttribute.key, finalAttribute.required || false, finalAttribute.min
|
330
|
+
await tryAwaitWithRetry(async () => await db.updateIntegerAttribute(dbId, collection.$id, finalAttribute.key, finalAttribute.required || false, finalAttribute.min !== undefined ? finalAttribute.min : -2147483647, finalAttribute.max !== undefined ? finalAttribute.max : 2147483647, finalAttribute.xdefault !== undefined && !finalAttribute.required
|
331
331
|
? finalAttribute.xdefault
|
332
332
|
: null));
|
333
333
|
}
|
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.2.
|
4
|
+
"version": "1.2.29",
|
5
5
|
"main": "src/main.ts",
|
6
6
|
"type": "module",
|
7
7
|
"repository": {
|
@@ -505,8 +505,8 @@ export const createOrUpdateAttribute = async (
|
|
505
505
|
collection.$id,
|
506
506
|
finalAttribute.key,
|
507
507
|
finalAttribute.required || false,
|
508
|
-
finalAttribute.min
|
509
|
-
finalAttribute.max
|
508
|
+
finalAttribute.min !== undefined ? finalAttribute.min : -2147483647,
|
509
|
+
finalAttribute.max !== undefined ? finalAttribute.max : 2147483647,
|
510
510
|
finalAttribute.xdefault !== undefined && !finalAttribute.required
|
511
511
|
? finalAttribute.xdefault
|
512
512
|
: null,
|
@@ -533,8 +533,8 @@ export const createOrUpdateAttribute = async (
|
|
533
533
|
collection.$id,
|
534
534
|
finalAttribute.key,
|
535
535
|
finalAttribute.required || false,
|
536
|
-
finalAttribute.min
|
537
|
-
finalAttribute.max
|
536
|
+
finalAttribute.min !== undefined ? finalAttribute.min : -2147483647,
|
537
|
+
finalAttribute.max !== undefined ? finalAttribute.max : 2147483647,
|
538
538
|
finalAttribute.xdefault !== undefined && !finalAttribute.required
|
539
539
|
? finalAttribute.xdefault
|
540
540
|
: null
|