2015-08-24 20:22:07 +00:00
CREATE TABLE IF NOT EXISTS ` #__demo_look` (
2017-04-08 18:35:55 +00:00
` id ` INT ( 11 ) NOT NULL AUTO_INCREMENT ,
` asset_id ` INT ( 10 ) unsigned NOT NULL DEFAULT 0 COMMENT ' FK to the #__assets table. ' ,
2017-08-21 12:17:01 +00:00
` add ` TINYINT ( 1 ) NOT NULL DEFAULT 0 ,
2015-08-24 20:22:07 +00:00
` alias ` CHAR ( 64 ) NOT NULL DEFAULT ' ' ,
2017-04-08 18:35:55 +00:00
` dateofbirth ` DATE NOT NULL DEFAULT ' 0000-00-00 ' ,
` description ` TEXT NOT NULL ,
` email ` VARCHAR ( 255 ) NOT NULL DEFAULT ' ' ,
` image ` CHAR ( 64 ) NOT NULL DEFAULT ' ' ,
` mobile_phone ` VARCHAR ( 64 ) NOT NULL DEFAULT ' ' ,
2015-08-24 20:22:07 +00:00
` name ` VARCHAR ( 255 ) NOT NULL DEFAULT ' ' ,
` website ` VARCHAR ( 255 ) NOT NULL DEFAULT ' ' ,
2019-04-23 20:37:57 +00:00
` params ` text NOT NULL ,
2017-04-08 18:35:55 +00:00
` published ` TINYINT ( 3 ) NOT NULL DEFAULT 1 ,
` created_by ` INT ( 10 ) unsigned NOT NULL DEFAULT 0 ,
` modified_by ` INT ( 10 ) unsigned NOT NULL DEFAULT 0 ,
2015-08-24 20:22:07 +00:00
` created ` DATETIME NOT NULL DEFAULT ' 0000-00-00 00:00:00 ' ,
` modified ` DATETIME NOT NULL DEFAULT ' 0000-00-00 00:00:00 ' ,
2017-04-08 18:35:55 +00:00
` checked_out ` int ( 11 ) unsigned NOT NULL DEFAULT 0 ,
2015-08-24 20:22:07 +00:00
` checked_out_time ` DATETIME NOT NULL DEFAULT ' 0000-00-00 00:00:00 ' ,
2017-04-08 18:35:55 +00:00
` version ` INT ( 10 ) unsigned NOT NULL DEFAULT 1 ,
` hits ` INT ( 10 ) unsigned NOT NULL DEFAULT 0 ,
` access ` INT ( 10 ) unsigned NOT NULL DEFAULT 0 ,
` ordering ` INT ( 11 ) NOT NULL DEFAULT 0 ,
2019-04-23 20:37:57 +00:00
` metakey ` TEXT NOT NULL ,
` metadesc ` TEXT NOT NULL ,
` metadata ` TEXT NOT NULL ,
2015-08-24 20:22:07 +00:00
PRIMARY KEY ( ` id ` ) ,
KEY ` idx_access ` ( ` access ` ) ,
KEY ` idx_checkout ` ( ` checked_out ` ) ,
KEY ` idx_createdby ` ( ` created_by ` ) ,
KEY ` idx_modifiedby ` ( ` modified_by ` ) ,
KEY ` idx_state ` ( ` published ` ) ,
KEY ` idx_name ` ( ` name ` ) ,
2018-05-05 01:16:22 +00:00
KEY ` idx_add ` ( ` add ` ) ,
KEY ` idx_alias ` ( ` alias ` )
2019-04-23 20:37:57 +00:00
) ENGINE = InnoDB AUTO_INCREMENT = 0 DEFAULT CHARSET = utf8mb4 DEFAULT COLLATE = utf8mb4_unicode_ci ;
2015-08-24 20:22:07 +00:00
2016-06-02 07:45:56 +00:00
--
2017-04-08 18:35:55 +00:00
-- Always insure this column rules is large enough for all the access control values.
2016-06-02 07:45:56 +00:00
--
ALTER TABLE ` #__assets` CHANGE `rules` `rules` MEDIUMTEXT NOT NULL COMMENT 'JSON encoded access control.';
2017-04-08 18:35:55 +00:00
--
-- Always insure this column name is large enough for long component and view names.
--
ALTER TABLE ` #__assets` CHANGE `name` `name` VARCHAR(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'The unique name for the asset.';