20. februar 2001 - 13:46Der er
8 kommentarer og 1 løsning
hvordan skal min DB være opbygget
jeg har denne unix/linux fil, som normalt opretter databasen, men da det skal køre på en NT server, så bliver jeg vel nødtil at oprette DB\'en manuelt :(
sorce code:
--- popper.mysql.old Wed Nov 22 16:58:30 2000 +++ popper.mysql Tue Jan 9 00:28:52 2001 @@ -7,7 +7,6 @@ # # Table structure for table \'accounts\' # -DROP TABLE IF EXISTS accounts; CREATE TABLE accounts ( id int(11) DEFAULT \'0\' NOT NULL auto_increment, user_id int(11) DEFAULT \'0\' NOT NULL, @@ -23,14 +22,12 @@ # # Table structure for table \'addresses\' # -DROP TABLE IF EXISTS addresses; CREATE TABLE addresses ( id int(11) DEFAULT \'0\' NOT NULL auto_increment, email varchar(255) DEFAULT \'\' NOT NULL, name varchar(255) DEFAULT \'\' NOT NULL, address1 varchar(255), address2 varchar(255), - zip int(11), town varchar(255), state varchar(255), country varchar(255), @@ -40,13 +37,13 @@ user_id int(11), nickname varchar(255), lastname varchar(255), + zip varchar(16), PRIMARY KEY (id) );
# # Table structure for table \'app\' # -DROP TABLE IF EXISTS app; CREATE TABLE app ( id int(11) DEFAULT \'0\' NOT NULL auto_increment, user_id int(11), @@ -60,7 +57,6 @@ # # Table structure for table \'conf\' # -DROP TABLE IF EXISTS conf; CREATE TABLE conf ( id int(11) DEFAULT \'0\' NOT NULL auto_increment, user_id int(11) DEFAULT \'0\' NOT NULL, @@ -70,6 +66,9 @@ signature text, app_sig tinyint(1), send_direct tinyint(1), + add_address tinyint(4), + mail_rows int(11), + mails_per_page int(11), PRIMARY KEY (id), UNIQUE user_id (user_id) ); @@ -77,18 +76,15 @@ # # Table structure for table \'confirmations\' # -DROP TABLE IF EXISTS confirmations; CREATE TABLE confirmations ( - id int(11) DEFAULT \'0\' NOT NULL auto_increment, + id int(11) DEFAULT \'0\' NOT NULL, user_id int(11) DEFAULT \'0\' NOT NULL, - check char(32), - PRIMARY KEY (id) + check char(32) );
# # Table structure for table \'mails\' # -DROP TABLE IF EXISTS mails; CREATE TABLE mails ( id int(11) DEFAULT \'0\' NOT NULL auto_increment, folder varchar(255), @@ -109,7 +105,6 @@ # # Table structure for table \'users\' # -DROP TABLE IF EXISTS users; CREATE TABLE users ( id int(11) DEFAULT \'0\' NOT NULL auto_increment, name varchar(255) DEFAULT \'\' NOT NULL,
----------
Hvordan ser min tabeller ud ??
der er en der hedder mails, skal den kun indeholde to kolloner ??? if og folder ???
CREATE TABLE mails ( id int(11) DEFAULT \'0\' NOT NULL auto_increment, folder varchar(255), @@ -109,7 +105,6 @@
Denne side indeholder artikler med forskellige perspektiver på Identity & Access Management i private og offentlige organisationer. Artiklerne behandler aktuelle IAM-emner og leveres af producenter, rådgivere og implementeringspartnere.
DROP TABLE IF EXISTS accounts; CREATE TABLE accounts ( id int(11) DEFAULT \'0\' NOT NULL auto_increment, user_id int(11) DEFAULT \'0\' NOT NULL, ); # # Table structure for table \'addresses\' # DROP TABLE IF EXISTS addresses; CREATE TABLE addresses ( id int(11) DEFAULT \'0\' NOT NULL auto_increment, email varchar(255) DEFAULT \'\' NOT NULL, name varchar(255) DEFAULT \'\' NOT NULL, address1 varchar(255), address2 varchar(255), zip int(11), town varchar(255), state varchar(255), country varchar(255), user_id int(11), nickname varchar(255), lastname varchar(255), zip varchar(16), PRIMARY KEY (id) );
# # Table structure for table \'app\' # DROP TABLE IF EXISTS app; CREATE TABLE app ( id int(11) DEFAULT \'0\' NOT NULL auto_increment, user_id int(11) ); # # Table structure for table \'conf\' # DROP TABLE IF EXISTS conf; CREATE TABLE conf ( id int(11) DEFAULT \'0\' NOT NULL auto_increment, user_id int(11) DEFAULT \'0\' NOT NULL, signature text, app_sig tinyint(1), send_direct tinyint(1), add_address tinyint(4), mail_rows int(11), mails_per_page int(11), PRIMARY KEY (id), UNIQUE user_id (user_id) );
# # Table structure for table \'confirmations\' # DROP TABLE IF EXISTS confirmations; CREATE TABLE confirmations ( id int(11) DEFAULT \'0\' NOT NULL auto_increment, id int(11) DEFAULT \'0\' NOT NULL, user_id int(11) DEFAULT \'0\' NOT NULL, check char(32), PRIMARY KEY (id) check char(32) );
# # Table structure for table \'mails\' # DROP TABLE IF EXISTS mails; CREATE TABLE mails ( id int(11) DEFAULT \'0\' NOT NULL auto_increment, folder varchar(255) ); # # Table structure for table \'users\' # DROP TABLE IF EXISTS users; CREATE TABLE users ( id int(11) DEFAULT \'0\' NOT NULL auto_increment, name varchar(255) DEFAULT \'\' NOT NULL );
Søgte på google efter popper.mysql (Se første linie af filen) og fandt hjemmesiden til popper.
Det er ganske rigtigt en diff-fil, men i arkivet var der også en fuld version af den. Den kan hentes på http://www.ractive.ch/gpl/popper.html for dem, der er interesseret.
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.