aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/Resources/IM_Store.migrations
blob: 79ead98cce9707489c528a476fe95f9a16722474 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
: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;

:VERSION 3         # -------------------------- 

BEGIN;

ALTER TABLE `im_offline`
  ADD `FromID` char(36) NOT NULL default '' AFTER `PrincipalID`,
  ADD KEY `FromID` (`FromID`);

COMMIT;

:VERSION 4         # -------------------------- 

BEGIN;

ALTER TABLE im_offline CONVERT TO CHARACTER SET utf8;

COMMIT;