documents} ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, name text NOT NULL, slug varchar(100) NOT NULL, type varchar(50) NOT NULL DEFAULT 'custom', author bigint(20) unsigned NOT NULL DEFAULT '0', sections_count mediumint NOT NULL DEFAULT '0', created_at datetime DEFAULT NULL, modified_at datetime DEFAULT NULL, thumbnail varchar(255) NOT NULL, content longtext NOT NULL, status varchar(20) NOT NULL DEFAULT 'draft', parent bigint(20) unsigned NOT NULL DEFAULT '0', password varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (id), KEY created_at (created_at), KEY slug (slug) ) {$this->charset_collate()};\n"; $this->dbDelta( $sql_create_table ); } /** * Create options table * * @since 1.0 * @return null */ public function create_table_options() { $sql_create_table = "CREATE TABLE {$this->options} ( id mediumint unsigned NOT NULL AUTO_INCREMENT, option_name varchar(191) NOT NULL DEFAULT '', option_value text NOT NULL DEFAULT '', PRIMARY KEY (id), UNIQUE KEY option_name (option_name) ) {$this->charset_collate()};\n"; $this->dbDelta( $sql_create_table ); } }