@@ -1819,7 +1819,7 @@ const pushTable = async ({ returnOnZero, attempts } = { returnOnZero: false }) =
1819
1819
}
1820
1820
1821
1821
const pushCollection = async ({ returnOnZero, attempts } = { returnOnZero: false }) => {
1822
- warn("⚠️ DEPRECATED: Use ' appwrite push table' instead. This command might be removed in the future ");
1822
+ warn("appwrite push collection has been deprecated. Please consider using 'appwrite push tables' instead ");
1823
1823
const collections = [];
1824
1824
1825
1825
if (attempts) {
@@ -1882,7 +1882,7 @@ const pushCollection = async ({ returnOnZero, attempts } = { returnOnZero: false
1882
1882
}));
1883
1883
1884
1884
1885
- if (!(await approveChanges(collections, databasesGetCollection, KeysCollection, 'collectionId', 'collections', ['columns ', 'indexes'], 'databaseId', 'databaseId',))) {
1885
+ if (!(await approveChanges(collections, databasesGetCollection, KeysCollection, 'collectionId', 'collections', ['attributes ', 'indexes'], 'databaseId', 'databaseId',))) {
1886
1886
return;
1887
1887
}
1888
1888
// Parallel collection actions
@@ -2227,20 +2227,20 @@ push
2227
2227
.option("--with-variables", `Push site variables.`)
2228
2228
.action(actionRunner(pushSite));
2229
2229
2230
+ push
2231
+ .command("collection")
2232
+ .alias("collections")
2233
+ .description("Push collections in the current project. (deprecated, please use 'push tables' instead)")
2234
+ .option(`-a, --attempts <numberOfAttempts >`, `Max number of attempts before timing out. default: 30.`)
2235
+ .action(actionRunner(pushCollection));
2236
+
2230
2237
push
2231
2238
.command("table")
2232
2239
.alias("tables")
2233
2240
.description("Push tables in the current project.")
2234
2241
.option(`-a, --attempts <numberOfAttempts >`, `Max number of attempts before timing out. default: 30.`)
2235
2242
.action(actionRunner(pushTable));
2236
2243
2237
- push
2238
- .command("collection")
2239
- .alias("collections")
2240
- .description("Push collections in the current project.")
2241
- .option(`-a, --attempts <numberOfAttempts >`, `Max number of attempts before timing out. default: 30.`)
2242
- .action(actionRunner(pushCollection));
2243
-
2244
2244
push
2245
2245
.command("bucket")
2246
2246
.alias("buckets")
0 commit comments