mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 19:36:07 +08:00
MS SQL migrations converted to the new format
This commit is contained in:
20
OpenSim/Data/MSSQL/Resources/FriendsStore.migrations
Normal file
20
OpenSim/Data/MSSQL/Resources/FriendsStore.migrations
Normal file
@@ -0,0 +1,20 @@
|
||||
:VERSION 1
|
||||
|
||||
BEGIN TRANSACTION
|
||||
|
||||
CREATE TABLE [Friends] (
|
||||
[PrincipalID] uniqueidentifier NOT NULL,
|
||||
[Friend] varchar(255) NOT NULL,
|
||||
[Flags] char(16) NOT NULL DEFAULT '0',
|
||||
[Offered] varchar(32) NOT NULL DEFAULT 0)
|
||||
ON [PRIMARY]
|
||||
|
||||
COMMIT
|
||||
|
||||
:VERSION 2
|
||||
|
||||
BEGIN TRANSACTION
|
||||
|
||||
INSERT INTO Friends (PrincipalID, Friend, Flags, Offered) SELECT [ownerID], [friendID], [friendPerms], 0 FROM userfriends;
|
||||
|
||||
COMMIT
|
||||
Reference in New Issue
Block a user