mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Create all tables ad InnoDB by default
MyISAM isn't properly replicated using row based replication. With the advances in clustering, these systems are becoming more prevalent and MyISAM isn't up to the task anymore.
This commit is contained in:
@@ -18,7 +18,7 @@ CREATE TABLE `os_groups_groups` (
|
||||
PRIMARY KEY (`GroupID`),
|
||||
UNIQUE KEY `Name` (`Name`),
|
||||
FULLTEXT KEY `Name_2` (`Name`)
|
||||
) ENGINE=MyISAM;
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
|
||||
CREATE TABLE `os_groups_membership` (
|
||||
@@ -31,7 +31,7 @@ CREATE TABLE `os_groups_membership` (
|
||||
`AccessToken` char(36) NOT NULL default '',
|
||||
PRIMARY KEY (`GroupID`,`PrincipalID`),
|
||||
KEY `PrincipalID` (`PrincipalID`)
|
||||
) ENGINE=MyISAM;
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
|
||||
CREATE TABLE `os_groups_roles` (
|
||||
@@ -43,7 +43,7 @@ CREATE TABLE `os_groups_roles` (
|
||||
`Powers` bigint(20) unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (`GroupID`,`RoleID`),
|
||||
KEY `GroupID` (`GroupID`)
|
||||
) ENGINE=MyISAM;
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
|
||||
CREATE TABLE `os_groups_rolemembership` (
|
||||
@@ -52,7 +52,7 @@ CREATE TABLE `os_groups_rolemembership` (
|
||||
`PrincipalID` VARCHAR(255) NOT NULL default '',
|
||||
PRIMARY KEY (`GroupID`,`RoleID`,`PrincipalID`),
|
||||
KEY `PrincipalID` (`PrincipalID`)
|
||||
) ENGINE=MyISAM;
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
|
||||
CREATE TABLE `os_groups_invites` (
|
||||
@@ -63,7 +63,7 @@ CREATE TABLE `os_groups_invites` (
|
||||
`TMStamp` timestamp NOT NULL,
|
||||
PRIMARY KEY (`InviteID`),
|
||||
UNIQUE KEY `PrincipalGroup` (`GroupID`,`PrincipalID`)
|
||||
) ENGINE=MyISAM;
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
|
||||
CREATE TABLE `os_groups_notices` (
|
||||
@@ -81,13 +81,13 @@ CREATE TABLE `os_groups_notices` (
|
||||
PRIMARY KEY (`NoticeID`),
|
||||
KEY `GroupID` (`GroupID`),
|
||||
KEY `TMStamp` (`TMStamp`)
|
||||
) ENGINE=MyISAM;
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
CREATE TABLE `os_groups_principals` (
|
||||
`PrincipalID` VARCHAR(255) NOT NULL default '',
|
||||
`ActiveGroupID` char(36) NOT NULL default '',
|
||||
PRIMARY KEY (`PrincipalID`)
|
||||
) ENGINE=MyISAM;
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
COMMIT;
|
||||
|
||||
@@ -112,4 +112,4 @@ DROP TABLE `diva_groups_principals`;
|
||||
|
||||
DELETE FROM `migrations` WHERE name='diva_im_Store';
|
||||
|
||||
COMMIT;
|
||||
COMMIT;
|
||||
|
||||
Reference in New Issue
Block a user