From 6e7b3950d70b0dbe3b765d596adc534a6ca3a2a9 Mon Sep 17 00:00:00 2001
From: AlexRa
Date: Thu, 6 May 2010 22:44:57 +0300
Subject: Migrations for SQLite converted to new format

---
 .../Data/SQLite/Resources/FriendsStore.migrations    | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 OpenSim/Data/SQLite/Resources/FriendsStore.migrations

(limited to 'OpenSim/Data/SQLite/Resources/FriendsStore.migrations')

diff --git a/OpenSim/Data/SQLite/Resources/FriendsStore.migrations b/OpenSim/Data/SQLite/Resources/FriendsStore.migrations
new file mode 100644
index 0000000..3eb4352
--- /dev/null
+++ b/OpenSim/Data/SQLite/Resources/FriendsStore.migrations
@@ -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;
-- 
cgit v1.1