The database is used for storing majority of user entered data (except user uploaded files). Almost each database table has associated unit, that is responsible for reading/writing data from it.
Following is missing however:
db_type
" field option (in "Fields" array) contain pseudo database type, instead of actual MySQL data type:date - "INT(10) NULL DEFAULT NULL"
money - "DECIMAL(20,6) NULL DEFAULT NULL"
int32 - "INT(10)"
int64 - "BIGINT(20)"
and so on
Fields
" array first:db_type
" field option is specified for all fields in the table, then auto-adjust that tabledescribe index structure in the new "Indexes
" unit config option like so (the field specified in "IDField" of unit config is automatically assigned an "auto_increment" db extra and added as primary key):
'Indexes' => array( 'IDX_INDEX_NAME' => array( 'columns' => array('DBColumn1', 'DBColumn2'), 'unique' => true, ), ), |
l1_Name
") into this commandold_schema
" event parameter, when changing column definition (fragment of ALTER TABLE statement relevant to affected column)new_schema
" event parameter, when adding/changing column definition (fragment of ALTER TABLE statement relevant to affected column)column_name
" event parameterRebuild Multilingual Fields
" action on "System Tools
" page with "Rebuild Database Structure
" action that would call above created commandif table column has association with another database table, then define it via new "foreign_key
" field option (won't be used for now) like so:
'Fields' => array( 'ItemResourceId' => array( 'type' => 'int', ..., 'default' => null, 'foreign_key' => 'l:ResourceId' ), ), |
db_type
" and we have lots of tables/fields to populate them automaticallyTasks, associated with this discussion.