Skip to content

table.fieldAdd

Add a field to a table.

js
let created = table.fieldAdd(tableName, fieldName, fieldType);

Parameters

  • tableName - Name of the table.
  • fieldName - Name of the field.
  • fieldType - Field type from table below

Example

js
let created = table.fieldAdd("users", "password", "Text [512]");

Types

Type
CALCULATED NUMERIC
CALCULATED TEXT
DATE
DATE TIME
DATE TIME CREATED
DATE TIME LAST UPDATED
FILE ATTACHMENT
NUMERIC
REMOTE IDENTIFIER
TEXT [25, 000]
TEXT FORMATTED [25, 000]
TEXT [512]
TEXT [55]
TEXT [LIST]
TIME
UNIQUE IDENTIFIER
USER ID CREATOR
USER ID LAST MODIFIED
USER ID
YES OR NO