IM_Store.migrations 719 B

12345678910111213141516171819202122232425262728293031323334
  1. :VERSION 1 # --------------------------
  2. BEGIN;
  3. CREATE TABLE `im_offline` (
  4. `ID` MEDIUMINT NOT NULL AUTO_INCREMENT,
  5. `PrincipalID` char(36) NOT NULL default '',
  6. `Message` text NOT NULL,
  7. `TMStamp` timestamp NOT NULL,
  8. PRIMARY KEY (`ID`),
  9. KEY `PrincipalID` (`PrincipalID`)
  10. ) ENGINE=MyISAM;
  11. COMMIT;
  12. :VERSION 2 # --------------------------
  13. BEGIN;
  14. INSERT INTO `im_offline` SELECT * from `diva_im_offline`;
  15. DROP TABLE `diva_im_offline`;
  16. DELETE FROM `migrations` WHERE name='diva_im_Store';
  17. COMMIT;
  18. :VERSION 3 # --------------------------
  19. BEGIN;
  20. ALTER TABLE `im_offline`
  21. ADD `FromID` char(36) NOT NULL default '' AFTER `PrincipalID`,
  22. ADD KEY `FromID` (`FromID`);
  23. COMMIT;