- Add migration script
- Rename some tables
This commit is contained in:
19
wise-webapp/src/test/sql/mysql/v2.0-to-v3.0.sql
Normal file
19
wise-webapp/src/test/sql/mysql/v2.0-to-v3.0.sql
Normal file
@@ -0,0 +1,19 @@
|
||||
CREATE TABLE COLLABORATION_PROPERTIES(
|
||||
id INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||
starred BOOL NOT NULL default 0,
|
||||
mindmap_properties varchar(512) CHARACTER SET utf8
|
||||
) CHARACTER SET utf8;
|
||||
|
||||
drop table `wisemapping`.`MINDMAP_NATIVE`
|
||||
ALTER TABLE `wisemapping`.`mindmap_colaborator` RENAME TO `wisemapping`.`COLLABORATION` ;
|
||||
ALTER TABLE `wisemapping`.`colaborator` RENAME TO `wisemapping`.`collaborator` ;
|
||||
|
||||
ALTER TABLE `wisemapping`.`mindmap` DROP COLUMN `editor_properties` , DROP COLUMN `mindMapNative_id` ;
|
||||
|
||||
ALTER TABLE `wisemapping`.`mindmap` CHANGE COLUMN `owner_id` `creator_id` INT(11) NOT NULL
|
||||
, DROP INDEX `owner_id`
|
||||
, ADD INDEX `owner_id` (`creator_id` ASC) ;
|
||||
|
||||
ALTER TABLE `wisemapping`.`collaboration` ADD COLUMN `properties_id` INT(11) NULL DEFAULT NULL AFTER `role_id` ;
|
||||
|
||||
#INSERT INTO `wisemapping`.`collaborator` (`id`, `email`, `creation_date`) VALUES (8081, 'fake@wisemapping.com', '2007-10-09');
|
Reference in New Issue
Block a user