Syncs a database table to the DocType (metadata) Note This module is only used internally
converts the user defined field types (ftype) to database fieldtypes example: Data becomes varchar(180)
Default field lengths:
Updates columns from the DocType to the table
- name: ID / primary key
- owner: creator of the record
- creation: datetime of creation
- modified: datetime of last modification
- modified_by : last updating user
- docstatus : Status 0 - Saved, 1 - Submitted, 2- Cancelled
- parent : if child (table) record, this represents the parent record
- parenttype : type of parent record (if any)
- parentfield : table fieldname of parent record (if any)
- idx : Index (sequence) of the child record