mirror of
https://github.com/opensim/opensim.git
synced 2026-07-08 13:56:26 +08:00
* Patch from justincc to fix Inconsistent automatic mysql table creation - see bug 169
This commit is contained in:
24
OpenSim/Framework/Data.MySQL/Resources/CreateAgentsTable.sql
Normal file
24
OpenSim/Framework/Data.MySQL/Resources/CreateAgentsTable.sql
Normal file
@@ -0,0 +1,24 @@
|
||||
SET FOREIGN_KEY_CHECKS=0;
|
||||
-- ----------------------------
|
||||
-- Table structure for agents
|
||||
-- ----------------------------
|
||||
CREATE TABLE `agents` (
|
||||
`UUID` varchar(36) NOT NULL,
|
||||
`sessionID` varchar(36) NOT NULL,
|
||||
`secureSessionID` varchar(36) NOT NULL,
|
||||
`agentIP` varchar(16) NOT NULL,
|
||||
`agentPort` int(11) NOT NULL,
|
||||
`agentOnline` tinyint(4) NOT NULL,
|
||||
`loginTime` int(11) NOT NULL,
|
||||
`logoutTime` int(11) NOT NULL,
|
||||
`currentRegion` varchar(36) NOT NULL,
|
||||
`currentHandle` bigint(20) unsigned NOT NULL,
|
||||
`currentPos` varchar(64) NOT NULL,
|
||||
PRIMARY KEY (`UUID`),
|
||||
UNIQUE KEY `session` (`sessionID`),
|
||||
UNIQUE KEY `ssession` (`secureSessionID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Rev. 1';
|
||||
|
||||
-- ----------------------------
|
||||
-- Records
|
||||
-- ----------------------------
|
||||
Reference in New Issue
Block a user