appwrite-utils-cli 0.0.1 → 0.0.2
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.
- package/dist/main.js +0 -0
- package/dist/migrations/schemaStrings.js +0 -2
- package/dist/setup.js +0 -0
- package/package.json +13 -1
- package/src/migrations/schemaStrings.ts +0 -3
package/dist/main.js
CHANGED
|
File without changes
|
|
@@ -16,7 +16,6 @@ export class SchemaGenerator {
|
|
|
16
16
|
collection.attributes.forEach((attr) => {
|
|
17
17
|
if (attr.type === "relationship" && attr.twoWay && attr.twoWayKey) {
|
|
18
18
|
const relationshipAttr = attr;
|
|
19
|
-
console.log(`Extracting relationship: ${attr.key}`);
|
|
20
19
|
let isArrayParent = false;
|
|
21
20
|
let isArrayChild = false;
|
|
22
21
|
switch (relationshipAttr.relationType) {
|
|
@@ -88,7 +87,6 @@ export class SchemaGenerator {
|
|
|
88
87
|
const isArray = detail.isArray ? "array" : "";
|
|
89
88
|
return [relatedCollectionName, key, isArray];
|
|
90
89
|
});
|
|
91
|
-
console.log(relatedCollections);
|
|
92
90
|
let relatedTypes = "";
|
|
93
91
|
let relatedTypesLazy = "";
|
|
94
92
|
let curNum = 0;
|
package/dist/setup.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,13 +1,25 @@
|
|
|
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": "0.0.
|
|
4
|
+
"version": "0.0.2",
|
|
5
5
|
"main": "src/main.ts",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/zachhandley/AppwriteUtils"
|
|
10
10
|
},
|
|
11
|
+
"author": "Zach Handley <zach@blackleafdigital.com> (https://zachhandley.com)",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"appwrite",
|
|
14
|
+
"cli",
|
|
15
|
+
"utils",
|
|
16
|
+
"migrations",
|
|
17
|
+
"data",
|
|
18
|
+
"database",
|
|
19
|
+
"import",
|
|
20
|
+
"migration",
|
|
21
|
+
"utility"
|
|
22
|
+
],
|
|
11
23
|
"bin": {
|
|
12
24
|
"appwrite-setup": "./dist/setup.js",
|
|
13
25
|
"appwrite-migrate": "./dist/main.js"
|
|
@@ -33,7 +33,6 @@ export class SchemaGenerator {
|
|
|
33
33
|
collection.attributes.forEach((attr) => {
|
|
34
34
|
if (attr.type === "relationship" && attr.twoWay && attr.twoWayKey) {
|
|
35
35
|
const relationshipAttr = attr as RelationshipAttribute;
|
|
36
|
-
console.log(`Extracting relationship: ${attr.key}`);
|
|
37
36
|
let isArrayParent = false;
|
|
38
37
|
let isArrayChild = false;
|
|
39
38
|
switch (relationshipAttr.relationType) {
|
|
@@ -132,8 +131,6 @@ export class SchemaGenerator {
|
|
|
132
131
|
return [relatedCollectionName, key, isArray];
|
|
133
132
|
});
|
|
134
133
|
|
|
135
|
-
console.log(relatedCollections);
|
|
136
|
-
|
|
137
134
|
let relatedTypes = "";
|
|
138
135
|
let relatedTypesLazy = "";
|
|
139
136
|
let curNum = 0;
|