diff options
author | Wushin <pasekei@gmail.com> | 2014-11-16 22:27:32 -0600 |
---|---|---|
committer | Wushin <pasekei@gmail.com> | 2014-11-16 22:27:32 -0600 |
commit | 6f37a79665408c3531842851fc6c3efabfe50a07 (patch) | |
tree | 6e8dc2a26e61bfe6ba61af731208fc07a8b2536e /extensions/tmwa/sql/createTables.sql | |
parent | e41baa4c3aeb5f2b05fb928c1bf13e6a9bb130a7 (diff) | |
parent | 294e5d28e70d1709520c3fbb78464edb557f638b (diff) | |
download | website-6f37a79665408c3531842851fc6c3efabfe50a07.tar.gz website-6f37a79665408c3531842851fc6c3efabfe50a07.tar.bz2 website-6f37a79665408c3531842851fc6c3efabfe50a07.tar.xz website-6f37a79665408c3531842851fc6c3efabfe50a07.zip |
Merge pull request #9 from wushin/www-to-wiki
Www to wiki
Diffstat (limited to 'extensions/tmwa/sql/createTables.sql')
-rw-r--r-- | extensions/tmwa/sql/createTables.sql | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/extensions/tmwa/sql/createTables.sql b/extensions/tmwa/sql/createTables.sql new file mode 100644 index 0000000..8942ce1 --- /dev/null +++ b/extensions/tmwa/sql/createTables.sql @@ -0,0 +1,20 @@ +BEGIN; +CREATE TABLE /*$wgDBprefix*/tmw_accounts ( + -- Primary + ID INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, + -- Username + USERNAME VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + -- Password + PASSWORD VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + -- Email + EMAIL VARCHAR(200) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + -- Registration State + STATE TINYINT UNSIGNED NOT NULL DEFAULT '0', + -- When Registered + REGISTRATION TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, + -- Gender + GENDER CHAR(1) NOT NULL DEFAULT 'F', + INDEX (STATE), + UNIQUE (USERNAME) +) ENGINE=InnoDB; +COMMIT; |