public function process_schema($name, $data, $table) { $table_tags = self::table_tags($table, $name); $fields_tags = array('id' => array('sqltype' => 'serial'), 'title' => array('sqltype' => 'varchar(100) index')); CMS_Fields::process_schema($table_tags, $fields_tags); $table_rels = self::table_rels($table, $name); $fields_rels = array('tag_id' => array('sqltype' => 'int index'), 'item_id' => array('sqltype' => 'int index')); CMS_Fields::process_schema($table_rels, $fields_rels); }
static function run() { CMS_Fields::process_schema('tao_cli_calls', self::fields()); }