diff options
author | Melanie | 2010-02-28 23:26:38 +0000 |
---|---|---|
committer | Melanie | 2010-02-28 23:26:38 +0000 |
commit | 18727235a071507373d93725885daf07b36b524d (patch) | |
tree | 26a2b10747801c9fef2482198b2ab6304ea5c39c /OpenSim/Data/SQLite/Resources | |
parent | Implement rights changes locall (UNTESTED) (diff) | |
parent | Added FriendsData to both Null storage and SQLite. Untested. (diff) | |
download | opensim-SC-18727235a071507373d93725885daf07b36b524d.zip opensim-SC-18727235a071507373d93725885daf07b36b524d.tar.gz opensim-SC-18727235a071507373d93725885daf07b36b524d.tar.bz2 opensim-SC-18727235a071507373d93725885daf07b36b524d.tar.xz |
Merge branch 'presence-refactor' of melanie@opensimulator.org:/var/git/opensim into presence-refactor
Diffstat (limited to 'OpenSim/Data/SQLite/Resources')
-rw-r--r-- | OpenSim/Data/SQLite/Resources/001_FriendsStore.sql | 10 | ||||
-rw-r--r-- | OpenSim/Data/SQLite/Resources/002_FriendsStore.sql | 5 |
2 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Data/SQLite/Resources/001_FriendsStore.sql b/OpenSim/Data/SQLite/Resources/001_FriendsStore.sql new file mode 100644 index 0000000..f1b9ab9 --- /dev/null +++ b/OpenSim/Data/SQLite/Resources/001_FriendsStore.sql | |||
@@ -0,0 +1,10 @@ | |||
1 | BEGIN TRANSACTION; | ||
2 | |||
3 | CREATE TABLE `Friends` ( | ||
4 | `PrincipalID` CHAR(36) NOT NULL, | ||
5 | `Friend` VARCHAR(255) NOT NULL, | ||
6 | `Flags` VARCHAR(16) NOT NULL DEFAULT 0, | ||
7 | `Offered` VARCHAR(32) NOT NULL DEFAULT 0, | ||
8 | PRIMARY KEY(`PrincipalID`, `Friend`)); | ||
9 | |||
10 | COMMIT; | ||
diff --git a/OpenSim/Data/SQLite/Resources/002_FriendsStore.sql b/OpenSim/Data/SQLite/Resources/002_FriendsStore.sql new file mode 100644 index 0000000..6733502 --- /dev/null +++ b/OpenSim/Data/SQLite/Resources/002_FriendsStore.sql | |||
@@ -0,0 +1,5 @@ | |||
1 | BEGIN TRANSACTION; | ||
2 | |||
3 | INSERT INTO `Friends` SELECT `ownerID`, `friendID`, `friendPerms`, 0 FROM `userfriends`; | ||
4 | |||
5 | COMMIT; | ||