Formatting.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@407 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2001-11-01 01:49:12 +00:00
parent 0a6e39fb78
commit f099bd4e03
@@ -1,5 +1,5 @@
/** /**
* $Id: create_user_tables.mysql,v 1.2 2001/11/01 00:07:19 mdb Exp $ * $Id: create_user_tables.mysql,v 1.3 2001/11/01 01:49:12 mdb Exp $
* *
* Creates the necessary database tables in MySQL for the user repository. * Creates the necessary database tables in MySQL for the user repository.
*/ */
@@ -9,7 +9,7 @@
*/ */
DROP TABLE IF EXISTS users; DROP TABLE IF EXISTS users;
CREATE TABLE users ( CREATE TABLE users (
userId INTEGER(10) PRIMARY KEY AUTO_INCREMENT, userId INTEGER(10) PRIMARY KEY NOT NULL AUTO_INCREMENT,
username VARCHAR(24) NOT NULL, username VARCHAR(24) NOT NULL,
password VARCHAR(13) NOT NULL, password VARCHAR(13) NOT NULL,
email VARCHAR(128) NOT NULL, email VARCHAR(128) NOT NULL,
@@ -29,7 +29,7 @@ CREATE TABLE users (
*/ */
DROP TABLE IF EXISTS sessions; DROP TABLE IF EXISTS sessions;
CREATE TABLE sessions ( CREATE TABLE sessions (
sessionId INTEGER(10) PRIMARY KEY AUTO_INCREMENT, sessionId INTEGER(10) PRIMARY KEY NOT NULL AUTO_INCREMENT,
authcode VARCHAR(32) NOT NULL, authcode VARCHAR(32) NOT NULL,
userId INTEGER(10) NOT NULL, userId INTEGER(10) NOT NULL,
expires DATE NOT NULL, expires DATE NOT NULL,