aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/SQLite/Resources/FriendsStore.migrations
blob: 3eb4352a0cd9c7422368579e7ced6eebf1bf2595 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;