updated resources for current sqlite schema for migrations

0.6.0-stable
Sean Dague 2008-06-11 20:04:01 +00:00
parent 2883656bbc
commit 68b98aecab
4 changed files with 200 additions and 171 deletions

View File

@ -1,5 +1,4 @@
BEGIN TRANSACTION;
CREATE TABLE assets(
UUID varchar(255) primary key,
Name varchar(255),

View File

@ -1,5 +1,13 @@
BEGIN TRANSACTION;
CREATE TABLE inventoryfolders(
UUID varchar(255) primary key,
name varchar(255),
agentID varchar(255),
parentID varchar(255),
type integer,
version integer);
CREATE TABLE inventoryitems(
UUID varchar(255) primary key,
assetID varchar(255),
@ -13,14 +21,12 @@ CREATE TABLE inventoryitems(
inventoryNextPermissions integer,
inventoryCurrentPermissions integer,
inventoryBasePermissions integer,
inventoryEveryOnePermissions integer);
CREATE TABLE inventoryfolders(
UUID varchar(255) primary key,
name varchar(255),
agentID varchar(255),
parentID varchar(255),
type integer,
version integer);
inventoryEveryOnePermissions integer,
salePrice integer default 99,
saleType integer default 0,
creationDate integer default 2000,
groupID varchar(255) default '00000000-0000-0000-0000-000000000000',
groupOwned integer default 0,
flags integer default 0);
COMMIT;

View File

@ -48,7 +48,8 @@ CREATE TABLE prims(
SitTargetOrientY float NOT NULL default 0,
SitTargetOrientZ float NOT NULL default 0);
CREATE TABLE primshapes(UUID varchar(255) primary key,
CREATE TABLE primshapes(
UUID varchar(255) primary key,
Shape integer,
ScaleX float,
ScaleY float,
@ -72,9 +73,29 @@ CREATE TABLE primshapes(UUID varchar(255) primary key,
ProfileEnd integer,
ProfileCurve integer,
ProfileHollow integer,
State integer,
Texture blob,
ExtraParams blob);
ExtraParams blob,
State Integer NOT NULL default 0);
CREATE TABLE primitems(
itemID varchar(255) primary key,
primID varchar(255),
assetID varchar(255),
parentFolderID varchar(255),
invType integer,
assetType integer,
name varchar(255),
description varchar(255),
creationDate integer,
creatorID varchar(255),
ownerID varchar(255),
lastOwnerID varchar(255),
groupID varchar(255),
nextPermissions string,
currentPermissions string,
basePermissions string,
everyonePermissions string,
groupPermissions string);
CREATE TABLE terrain(
RegionUUID varchar(255),
@ -88,7 +109,7 @@ CREATE TABLE land(
Bitmap blob,
Name varchar(255),
Desc varchar(255),
OwnerUUID varchar(36),
OwnerUUID varchar(255),
IsGroupOwned string,
Area integer,
AuctionID integer,
@ -112,7 +133,8 @@ CREATE TABLE land(
UserLocationZ float,
UserLookAtX float,
UserLookAtY float,
UserLookAtZ float);
UserLookAtZ float,
AuthbuyerID varchar(36) NOT NULL default '00000000-0000-0000-0000-000000000000');
CREATE TABLE landaccesslist(
LandUUID varchar(255),

View File

@ -1,5 +1,6 @@
BEGIN TRANSACTION;
-- users table
CREATE TABLE users(
UUID varchar(255) primary key,
username varchar(255),
@ -26,7 +27,7 @@ CREATE TABLE users(
profileImage varchar(255),
profileFirstImage varchar(255),
webLoginKey text default '00000000-0000-0000-0000-000000000000');
-- friends table
CREATE TABLE userfriends(
ownerID varchar(255),
friendID varchar(255),
@ -35,3 +36,4 @@ CREATE TABLE userfriends(
datetimestamp integer);
COMMIT;