Skip to content

Commit 14617d4

Browse files
authored
Merge pull request #1203 from appwrite/fix-key-column
2 parents 4852ce6 + 0ab8ddc commit 14617d4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

templates/cli/lib/config.js.twig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,13 @@ const KeysColumns = new Set([
6262
"onDelete",
6363
"side",
6464
// Indexes
65-
"attributes",
65+
"columns",
6666
"orders",
6767
// Strings
6868
"encrypt",
6969
]);
7070
const KeyIndexes = new Set(["key", "type", "status", "attributes", "orders"]);
71+
const KeyIndexesColumns = new Set(["key", "type", "status", "columns", "orders"]);
7172

7273
function whitelistKeys(value, keys, nestedKeys = {}) {
7374
if (Array.isArray(value)) {
@@ -404,7 +405,7 @@ class Local extends Config {
404405
addTable(props) {
405406
props = whitelistKeys(props, KeysTable, {
406407
columns: KeysColumns,
407-
indexes: KeyIndexes
408+
indexes: KeyIndexesColumns
408409
});
409410

410411
if (!this.has("tables")) {

0 commit comments

Comments
 (0)