appwrite / appwrite/sdk-for-node

Node SDK: "createTable" does not create columns

Aperta
#136 3 commenti 0 reazioni 1 assegnatario Rivendicata da @ChiragAgg5k Vedi su GitHub
Lingua principale
TypeScript
Stelle
256
Fork
45
Merge medio
11h 59m
PR unite (30g)
2

Descrizione

### 👟 Reproduction steps

Here is my node.js `createTable` function:
```js
await db.createTable({
databaseId,
tableId: 'months',
name: 'Months',
permissions: [Permission.read(Role.user(userId)), Permission.write(Role.user(userId))],
columns: [
{ key: 'budget_id', type: 'string', size: 255, required: true },
{ key: 'month', type: 'integer', required: true, min: 1, max: 12 },
{ key: 'year', type: 'integer', required: true, min: 1970, max: 9999 },
{ key: 'category_id', type: 'string', size: 255, required: true },
{ key: 'rollover', type: 'float', default: 0 },
{ key: 'assigned', type: 'float', default: 0 },
{ key: 'activity', type: 'float', default: 0 },
{ key: 'available', type: 'float', default: 0 },
{ key: 'deleted_at', type: 'datetime', required: false }
],
indexes: []
})
```
and it does not create the provided columns:

Image

### 👍 Expected behavior

the columns are created as specified

### 👎 Actual Behavior

no columns created

### 🎲 Appwrite version

Version 1.8.x

### 💻 Operating system

Linux

### 🧱 Your Environment

_No response_

### 👀 Have you spent some time to check if this issue has been raised before?

- [x] I checked and didn't find similar issue

### 🏢 Have you read the Code of Conduct?

- [x] I have read the [Code of Conduct](https://github.com/appwrite/.github/blob/main/CODE_OF_CONDUCT.md)

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.