diff options
author | Teravus Ovares | 2007-12-12 01:23:15 +0000 |
---|---|---|
committer | Teravus Ovares | 2007-12-12 01:23:15 +0000 |
commit | 83f727bb7c1da0f49ccf727bea8384ea4ebdd7d1 (patch) | |
tree | 0e725f6386e934a4d4a5dca88d0855e6109fbb18 /OpenSim/Framework/Data.MySQL/Resources/CreateUsersTable.sql | |
parent | * Temporarily sisabled neighbour cache for regions in the SceneCommunicationS... (diff) | |
download | opensim-SC_OLD-83f727bb7c1da0f49ccf727bea8384ea4ebdd7d1.zip opensim-SC_OLD-83f727bb7c1da0f49ccf727bea8384ea4ebdd7d1.tar.gz opensim-SC_OLD-83f727bb7c1da0f49ccf727bea8384ea4ebdd7d1.tar.bz2 opensim-SC_OLD-83f727bb7c1da0f49ccf727bea8384ea4ebdd7d1.tar.xz |
* Patch from justincc to fix Inconsistent automatic mysql table creation - see bug 169
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Data.MySQL/Resources/CreateUsersTable.sql | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/OpenSim/Framework/Data.MySQL/Resources/CreateUsersTable.sql b/OpenSim/Framework/Data.MySQL/Resources/CreateUsersTable.sql new file mode 100644 index 0000000..faac541 --- /dev/null +++ b/OpenSim/Framework/Data.MySQL/Resources/CreateUsersTable.sql | |||
@@ -0,0 +1,34 @@ | |||
1 | SET FOREIGN_KEY_CHECKS=0; | ||
2 | -- ---------------------------- | ||
3 | -- Table structure for users | ||
4 | -- ---------------------------- | ||
5 | CREATE TABLE `users` ( | ||
6 | `UUID` varchar(36) NOT NULL default '', | ||
7 | `username` varchar(32) NOT NULL, | ||
8 | `lastname` varchar(32) NOT NULL, | ||
9 | `passwordHash` varchar(32) NOT NULL, | ||
10 | `passwordSalt` varchar(32) NOT NULL, | ||
11 | `homeRegion` bigint(20) unsigned default NULL, | ||
12 | `homeLocationX` float default NULL, | ||
13 | `homeLocationY` float default NULL, | ||
14 | `homeLocationZ` float default NULL, | ||
15 | `homeLookAtX` float default NULL, | ||
16 | `homeLookAtY` float default NULL, | ||
17 | `homeLookAtZ` float default NULL, | ||
18 | `created` int(11) NOT NULL, | ||
19 | `lastLogin` int(11) NOT NULL, | ||
20 | `userInventoryURI` varchar(255) default NULL, | ||
21 | `userAssetURI` varchar(255) default NULL, | ||
22 | `profileCanDoMask` int(10) unsigned default NULL, | ||
23 | `profileWantDoMask` int(10) unsigned default NULL, | ||
24 | `profileAboutText` text, | ||
25 | `profileFirstText` text, | ||
26 | `profileImage` varchar(36) default NULL, | ||
27 | `profileFirstImage` varchar(36) default NULL, | ||
28 | PRIMARY KEY (`UUID`), | ||
29 | UNIQUE KEY `usernames` (`username`,`lastname`) | ||
30 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Rev. 1'; | ||
31 | |||
32 | -- ---------------------------- | ||
33 | -- Records | ||
34 | -- ---------------------------- | ||