Add appdb/tables/create_tables script to run the sql necessary to create and

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.
This commit is contained in:
Chris Morgan
2004-03-24 15:51:49 +00:00
committed by Jeremy Newman
parent 8eb8482819
commit 89e7284f34
7 changed files with 50 additions and 13 deletions

View File

@@ -1,16 +1,25 @@
create database if not exists apidb;
use apidb;
drop table vendor;
drop table appFamily;
drop table appVersion;
drop table userExperience;
drop table apiUsage;
drop table appCategory;
drop table appHitStats;
drop table catHitStats;
drop table appOwners;
drop table appComments;
drop table appData;
drop table if exists vendor;
drop table if exists appFamily;
drop table if exists appVersion;
drop table if exists userExperience;
drop table if exists apiUsage;
drop table if exists appCategory;
drop table if exists appHitStats;
drop table if exists catHitStats;
drop table if exists appOwners;
drop table if exists appComments;
drop table if exists appData;
drop table if exists appQueue;
drop table if exists appCrosslink;
drop table if exists appBundle;
drop table if exists appVotes;
drop table if exists appRating;
drop table if exists appNotes;
drop table if exists sessionMessages;
/*