diff options
author | Diva Canto | 2010-02-28 16:09:06 -0800 |
---|---|---|
committer | Diva Canto | 2010-02-28 16:09:06 -0800 |
commit | 774958bbbf639090e73204be1d5b6d5c7653441a (patch) | |
tree | 7a6415cbab9bf278d0d17f6b3b0b1ab640e853bd /OpenSim/Data/SQLite/Resources | |
parent | Change the signature of SendChangeUserRights, because we have to send (diff) | |
download | opensim-SC-774958bbbf639090e73204be1d5b6d5c7653441a.zip opensim-SC-774958bbbf639090e73204be1d5b6d5c7653441a.tar.gz opensim-SC-774958bbbf639090e73204be1d5b6d5c7653441a.tar.bz2 opensim-SC-774958bbbf639090e73204be1d5b6d5c7653441a.tar.xz |
Added FriendsData to both Null storage and SQLite. Untested.
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; | ||