setup appdb tables. Add app_category.sql and session_list.sql from Jeremy, without these the database wasn't handling logins correctly and had no categories. README now has some instructions on how to setup a local appdb. Modified config.php.sample to point to apidb to match what is in the sql in appdb/tables. Sql for table creation to use "if exists" to prevent data base errors on trying to drop tables that don't exist.
24 lines
1018 B
SQL
24 lines
1018 B
SQL
use apidb;
|
|
|
|
drop table if exists prefs_list;
|
|
|
|
CREATE TABLE prefs_list (
|
|
id int auto_increment not null,
|
|
name varchar(32),
|
|
def_value text,
|
|
value_list text,
|
|
description text,
|
|
|
|
primary key(id)
|
|
);
|
|
|
|
INSERT INTO prefs_list VALUES (0, 'debug', 'no', 'yes|no', 'Enable debugging information');
|
|
INSERT INTO prefs_list VALUES (0, 'sidebar', 'left', 'left|right', 'Sidebar location');
|
|
INSERT INTO prefs_list VALUES (0, 'window:query', 'no', 'yes|no', 'Display query results in a new window');
|
|
INSERT INTO prefs_list VALUES (0, 'window:help', 'no', 'yes|no', 'Display help in a new window');
|
|
INSERT INTO prefs_list VALUES (0, 'window:offsite', 'no', 'yes|no', 'Display offsite URLs in a new window');
|
|
|
|
INSERT INTO prefs_list VALUES (0, 'query:mode', 'view', 'view|edit', 'Default API details mode');
|
|
INSERT INTO prefs_list VALUES (0, 'query:hide_header', 'no', 'yes|no', 'Hide apidb header in query results');
|
|
INSERT INTO prefs_list VALUES (0, 'query:hide_sidebar', 'no', 'yes|no', 'Hide apidb sidebar in query results');
|