mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Converted MySQL migration history to the new format
Replaced all NNN_StoreName.sql migration resources with a more readable, single-file-per-store
This commit is contained in:
25
OpenSim/Data/MySQL/Resources/FriendsStore.migrations
Normal file
25
OpenSim/Data/MySQL/Resources/FriendsStore.migrations
Normal file
@@ -0,0 +1,25 @@
|
||||
:VERSION 1 # -------------------------
|
||||
|
||||
BEGIN;
|
||||
|
||||
CREATE TABLE `Friends` (
|
||||
`PrincipalID` CHAR(36) NOT NULL,
|
||||
`Friend` VARCHAR(255) NOT NULL,
|
||||
`Flags` VARCHAR(16) NOT NULL DEFAULT 0,
|
||||
`Offered` VARCHAR(32) NOT NULL DEFAULT 0,
|
||||
PRIMARY KEY(`PrincipalID`, `Friend`),
|
||||
KEY(`PrincipalID`)
|
||||
);
|
||||
|
||||
COMMIT;
|
||||
|
||||
:VERSION 2 # -------------------------
|
||||
|
||||
BEGIN;
|
||||
|
||||
INSERT INTO `Friends` SELECT `ownerID`, `friendID`, `friendPerms`, 0 FROM `userfriends`;
|
||||
|
||||
COMMIT;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user