diff options
author | Diva Canto | 2013-02-19 06:37:20 -0800 |
---|---|---|
committer | Diva Canto | 2013-02-19 06:37:20 -0800 |
commit | 46e182dbf546dcb58d088c043a0baa2dcfed9125 (patch) | |
tree | a3093e7ddb69c45d876229a430e22cda4f4699b4 /OpenSim/Data/MySQL/Resources/IM_Store.migrations | |
parent | One more sql statement on migration #2 for offline im, to really clean up thi... (diff) | |
download | opensim-SC-46e182dbf546dcb58d088c043a0baa2dcfed9125.zip opensim-SC-46e182dbf546dcb58d088c043a0baa2dcfed9125.tar.gz opensim-SC-46e182dbf546dcb58d088c043a0baa2dcfed9125.tar.bz2 opensim-SC-46e182dbf546dcb58d088c043a0baa2dcfed9125.tar.xz |
Offline IM: moved the Data and MySQL bits to the corresponding places in core, so that it will be easier to plugin a SQLite backend, if anyone is interested in doing that.
Diffstat (limited to 'OpenSim/Data/MySQL/Resources/IM_Store.migrations')
-rw-r--r-- | OpenSim/Data/MySQL/Resources/IM_Store.migrations | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/Resources/IM_Store.migrations b/OpenSim/Data/MySQL/Resources/IM_Store.migrations new file mode 100644 index 0000000..7cfcd43 --- /dev/null +++ b/OpenSim/Data/MySQL/Resources/IM_Store.migrations | |||
@@ -0,0 +1,24 @@ | |||
1 | :VERSION 1 # -------------------------- | ||
2 | |||
3 | BEGIN; | ||
4 | |||
5 | CREATE TABLE `im_offline` ( | ||
6 | `ID` MEDIUMINT NOT NULL AUTO_INCREMENT, | ||
7 | `PrincipalID` char(36) NOT NULL default '', | ||
8 | `Message` text NOT NULL, | ||
9 | `TMStamp` timestamp NOT NULL, | ||
10 | PRIMARY KEY (`ID`), | ||
11 | KEY `PrincipalID` (`PrincipalID`) | ||
12 | ) ENGINE=MyISAM; | ||
13 | |||
14 | COMMIT; | ||
15 | |||
16 | :VERSION 2 # -------------------------- | ||
17 | |||
18 | BEGIN; | ||
19 | |||
20 | INSERT INTO `im_offline` SELECT * from `diva_im_offline`; | ||
21 | DROP TABLE `diva_im_offline`; | ||
22 | DELETE FROM `migrations` WHERE name='diva_im_Store'; | ||
23 | |||
24 | COMMIT; \ No newline at end of file | ||