21 lines
395 B
Plaintext
21 lines
395 B
Plaintext
: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;
|