mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
Migrations for SQLite converted to new format
This commit is contained in:
20
OpenSim/Data/SQLite/Resources/FriendsStore.migrations
Normal file
20
OpenSim/Data/SQLite/Resources/FriendsStore.migrations
Normal file
@@ -0,0 +1,20 @@
|
||||
:VERSION 1
|
||||
|
||||
BEGIN TRANSACTION;
|
||||
|
||||
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`));
|
||||
|
||||
COMMIT;
|
||||
|
||||
:VERSION 2
|
||||
|
||||
BEGIN TRANSACTION;
|
||||
|
||||
INSERT INTO `Friends` SELECT `ownerID`, `friendID`, `friendPerms`, 0 FROM `userfriends`;
|
||||
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user