mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
Add the new AuthStore to migrations. Update OpenSim.Server.ini
This commit is contained in:
@@ -45,6 +45,9 @@ namespace OpenSim.Data.MySQL
|
||||
: base(connectionString)
|
||||
{
|
||||
m_Realm = realm;
|
||||
|
||||
Migration m = new Migration(m_Connection, GetType().Assembly, "AuthStore");
|
||||
m.Update();
|
||||
}
|
||||
|
||||
public AuthenticationData Get(UUID principalID)
|
||||
|
||||
21
OpenSim/Data/MySQL/Resources/001_AuthStore.sql
Normal file
21
OpenSim/Data/MySQL/Resources/001_AuthStore.sql
Normal file
@@ -0,0 +1,21 @@
|
||||
begin;
|
||||
|
||||
CREATE TABLE `auth` (
|
||||
`UUID` char(36) NOT NULL,
|
||||
`passwordHash` char(32) NOT NULL default '',
|
||||
`passwordSalt` char(32) NOT NULL default '',
|
||||
`webLoginKey` varchar(255) NOT NULL default '',
|
||||
PRIMARY KEY (`UUID`)
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
CREATE TABLE `tokens` (
|
||||
`UUID` char(36) NOT NULL,
|
||||
`token` varchar(255) NOT NULL,
|
||||
`validity` datetime NOT NULL,
|
||||
UNIQUE KEY `uuid_token` (`UUID`,`token`),
|
||||
KEY `UUID` (`UUID`),
|
||||
KEY `token` (`token`),
|
||||
KEY `validity` (`validity`)
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
commit;
|
||||
Reference in New Issue
Block a user