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.
23 lines
611 B
SQL
23 lines
611 B
SQL
use apidb;
|
|
|
|
drop table if exists user_list;
|
|
|
|
create table user_list (
|
|
stamp timestamp not null,
|
|
userid int not null auto_increment,
|
|
username text not null,
|
|
password text not null,
|
|
realname text not null,
|
|
email text not null,
|
|
created datetime not null,
|
|
status int(4),
|
|
perm int(4),
|
|
unique key(userid),
|
|
unique(username(12))
|
|
);
|
|
|
|
insert into user_list values (NOW(), 0, 'int', password('testing'), 'Charles Loep',
|
|
'charles@codeweavers.com', NOW(), 0, 0xffffffff);
|
|
update user_list set userid = 1000 where username = 'int';
|
|
|