Dec 12th, 2009, 10:41 PM
Hey Axel,
Hmm... it almost sounds like maybe the DB didn't get updated.
Try this: compare your view_filters and views tables with the following (sorry for the PHP, I just copied it from the installation script). Do they look the same (i.e. have the same columns)?
- Ben
Hmm... it almost sounds like maybe the DB didn't get updated.
Try this: compare your view_filters and views tables with the following (sorry for the PHP, I just copied it from the installation script). Do they look the same (i.e. have the same columns)?
Code:
$g_sql[] = "CREATE TABLE %PREFIX%view_filters (
filter_id mediumint(8) unsigned NOT NULL auto_increment,
view_id mediumint(8) unsigned NOT NULL,
filter_type enum('standard', 'client_map') NOT NULL default 'standard',
field_id mediumint(8) unsigned NOT NULL,
operator enum('equals','not_equals','like','not_like','before','after') NOT NULL default 'equals',
filter_values mediumtext NOT NULL,
filter_sql mediumtext NOT NULL,
PRIMARY KEY (filter_id)
) TYPE=InnoDB DEFAULT CHARSET=utf8";
$g_sql[] = "CREATE TABLE %PREFIX%views (
view_id smallint(6) NOT NULL auto_increment,
form_id mediumint(8) unsigned NOT NULL,
access_type enum('admin','public','private','hidden') NOT NULL default 'public',
view_name varchar(100) NOT NULL,
view_order smallint(6) NOT NULL default '1',
num_submissions_per_page smallint(6) NOT NULL default '10',
default_sort_field varchar(255) NOT NULL default 'submission_date',
default_sort_field_order enum('asc','desc') NOT NULL default 'desc',
may_add_submissions enum('yes','no') NOT NULL DEFAULT 'yes',
may_edit_submissions enum('yes','no') NOT NULL default 'yes',
may_delete_submissions enum('yes','no') NOT NULL default 'yes',
has_client_map_filter enum('yes','no') NOT NULL default 'no',
has_standard_filter enum('yes','no') NOT NULL default 'no',
PRIMARY KEY (view_id)
) TYPE=InnoDB DEFAULT CHARSET=utf8";
- Ben