aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Addons/OfflineIM/Resources/IM_Store.migrations
blob: 7cfcd438889f39c1d04d69f24d960840afefb6fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
:VERSION 1         # -------------------------- 

BEGIN;

CREATE TABLE `im_offline` (
  `ID` MEDIUMINT NOT NULL AUTO_INCREMENT,
  `PrincipalID` char(36) NOT NULL default '',
  `Message` text NOT NULL,
  `TMStamp` timestamp NOT NULL,
  PRIMARY KEY  (`ID`),
  KEY `PrincipalID` (`PrincipalID`)
) ENGINE=MyISAM;

COMMIT;

:VERSION 2         # -------------------------- 

BEGIN;

INSERT INTO `im_offline` SELECT * from `diva_im_offline`;
DROP TABLE `diva_im_offline`;
DELETE FROM `migrations` WHERE name='diva_im_Store';

COMMIT;