:VERSION 1

BEGIN TRANSACTION;

CREATE TABLE `AgentPrefs` (
    `PrincipalID` CHAR(36) NOT NULL,
    `AccessPrefs` CHAR(2) NOT NULL DEFAULT 'M',
    `HoverHeight` DOUBLE(30, 27) NOT NULL DEFAULT 0,
    `Language` CHAR(5) NOT NULL DEFAULT 'en-us',
    `LanguageIsPublic` BOOLEAN NOT NULL DEFAULT 1,
    `PermEveryone` INT(6) NOT NULL DEFAULT 0,
    `PermGroup` INT(6) NOT NULL DEFAULT 0,
    `PermNextOwner` INT(6) NOT NULL DEFAULT 532480,
    UNIQUE (`PrincipalID`),
    PRIMARY KEY(`PrincipalID`));

COMMIT;

:VERSION 2

BEGIN;

CREATE TABLE AgentPrefs(
    PrincipalID CHAR(36) NOT NULL,
    AccessPrefs CHAR(2) NOT NULL DEFAULT 'M',
    HoverHeight DOUBLE(30, 27) NOT NULL DEFAULT 0,
    Language CHAR(5) NOT NULL DEFAULT 'en-us',
    LanguageIsPublic BOOLEAN NOT NULL DEFAULT 1,
    PermEveryone INT(6) NOT NULL DEFAULT 0,
    PermGroup INT(6) NOT NULL DEFAULT 0,
    PermNextOwner INT(6) NOT NULL DEFAULT 532480,
    UNIQUE(PrincipalID),
    PRIMARY KEY(PrincipalID)
);

COMMIT;
