diff options
author | Melanie | 2009-09-04 08:10:05 +0100 |
---|---|---|
committer | Melanie | 2009-09-04 08:10:05 +0100 |
commit | 67f803c919324f49e21279faa43c9578b625529e (patch) | |
tree | 4924c2931e34c2a19645ed7d918da17b54e791f6 /OpenSim/Data/MySQL/Resources/001_AuthStore.sql | |
parent | Fully implement unencrypted auth token operations (diff) | |
download | opensim-SC-67f803c919324f49e21279faa43c9578b625529e.zip opensim-SC-67f803c919324f49e21279faa43c9578b625529e.tar.gz opensim-SC-67f803c919324f49e21279faa43c9578b625529e.tar.bz2 opensim-SC-67f803c919324f49e21279faa43c9578b625529e.tar.xz |
Add the new AuthStore to migrations. Update OpenSim.Server.ini
Diffstat (limited to 'OpenSim/Data/MySQL/Resources/001_AuthStore.sql')
-rw-r--r-- | OpenSim/Data/MySQL/Resources/001_AuthStore.sql | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/Resources/001_AuthStore.sql b/OpenSim/Data/MySQL/Resources/001_AuthStore.sql new file mode 100644 index 0000000..c7e16fb --- /dev/null +++ b/OpenSim/Data/MySQL/Resources/001_AuthStore.sql | |||
@@ -0,0 +1,21 @@ | |||
1 | begin; | ||
2 | |||
3 | CREATE TABLE `auth` ( | ||
4 | `UUID` char(36) NOT NULL, | ||
5 | `passwordHash` char(32) NOT NULL default '', | ||
6 | `passwordSalt` char(32) NOT NULL default '', | ||
7 | `webLoginKey` varchar(255) NOT NULL default '', | ||
8 | PRIMARY KEY (`UUID`) | ||
9 | ) ENGINE=InnoDB; | ||
10 | |||
11 | CREATE TABLE `tokens` ( | ||
12 | `UUID` char(36) NOT NULL, | ||
13 | `token` varchar(255) NOT NULL, | ||
14 | `validity` datetime NOT NULL, | ||
15 | UNIQUE KEY `uuid_token` (`UUID`,`token`), | ||
16 | KEY `UUID` (`UUID`), | ||
17 | KEY `token` (`token`), | ||
18 | KEY `validity` (`validity`) | ||
19 | ) ENGINE=InnoDB; | ||
20 | |||
21 | commit; | ||