@@ -1819,7 +1819,7 @@ const pushTable = async ({ returnOnZero, attempts } = { returnOnZero: false }) =
18191819}
18201820
18211821const 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 ");
18231823 const collections = [];
18241824
18251825 if (attempts) {
@@ -1882,7 +1882,7 @@ const pushCollection = async ({ returnOnZero, attempts } = { returnOnZero: false
18821882 }));
18831883
18841884
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',))) {
18861886 return;
18871887 }
18881888 // Parallel collection actions
@@ -2227,20 +2227,20 @@ push
22272227 .option("--with-variables", `Push site variables.`)
22282228 .action(actionRunner(pushSite));
22292229
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+
22302237push
22312238 .command("table")
22322239 .alias("tables")
22332240 .description("Push tables in the current project.")
22342241 .option(`-a, --attempts <numberOfAttempts >`, `Max number of attempts before timing out. default: 30.`)
22352242 .action(actionRunner(pushTable));
22362243
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-
22442244push
22452245 .command("bucket")
22462246 .alias("buckets")
0 commit comments