Migration
Create Table
$migration->createTable('sample', array(
'id' => 'pk',
'code' => 'string NOT NULL',
'sample_group_id' => 'integer NULL',
'sample_zone_code' => 'string NULL',
'title_en' => 'string NOT NULL',
'title_ms' => 'string NOT NULL',
'title_zh' => 'string NOT NULL',
'text_short_description_en' => 'string NOT NULL',
'text_short_description_ms' => 'string NOT NULL',
'text_short_description_zh' => 'string NOT NULL',
'html_content_en' => 'longtext NULL',
'html_content_ms' => 'longtext NULL',
'html_content_zh' => 'longtext NULL',
'image_main' => 'string NULL',
'file_backup' => 'string NULL',
'price_main' => 'decimal(10,0) NULL DEFAULT 0',
'gender' => 'string NULL',
'age' => 'integer NULL',
'csv_keyword' => 'mediumtext NULL',
'ordering' => 'double NOT NULL DEFAULT 1',
'date_posted' => 'integer NOT NULL',
'is_active' => 'boolean NOT NULL DEFAULT 1',
'is_public' => 'boolean NOT NULL DEFAULT 1',
'is_member' => 'boolean NOT NULL DEFAULT 1',
'is_admin' => 'boolean NOT NULL DEFAULT 1',
'date_added' => 'integer NOT NULL',
'date_modified' => 'integer NOT NULL',
));Alter Table
Create Index
Create Foreign Key
Execute Raw SQL
Create Meta
Create Setting
Create Embed
Create Service
Create Access Role
Last updated