...
- In alias section click on rmsis-h2 (connect to it)
- On left hand pane select rmsis-h2 > RMSIS > PUBLIC
- Go to SQL pane and write following queries, one per line
- ALTER TABLE PROJECT ALTER COLUMN VERSION RENAME TO VERSION_NEW;
- ALTER TABLE TEST_CASE ALTER COLUMN VERSION RENAME TO VERSION_NEW;
- ALTER TABLE REQUIREMENT_HIERARCHY ALTER COLUMN LEVEL RENAME TO LEVEL_NEW; (RMsis-1.7.1-r183 and below)
- ALTER TABLE REQUIREMENT_BASELINE ALTER COLUMN LEVEL RENAME TO LEVEL_NEW; (RMsis-1.7.1-r183 and below)
- ALTER TABLE ATTACHMENT ALTER COLUMN SIZE RENAME TO SIZE_NEW; (RMsis-1.7.1-r183 and below)
- ALTER TABLE REPORTING ALTER COLUMN DOMAIN RENAME TO DOMAIN_NEW;
- ALTER TABLE TEST_STEP ALTER COLUMN ACTION RENAME TO ACTION_NEW; (Only for RMsis-1.7.1-r168 and above)
- Run queries (CTRL + ENTER)
- Now your H2 database is ready for migration
...
- Open terminal and connect to rmsis_db_1 using MySQL
- mysql -u<username> -p<password> rmsis_db_1
- Run following queries
- ALTER TABLE `PROJECT` CHANGE `VERSION_NEW` `VERSION` INT( 11 ) NULL DEFAULT NULL;
- ALTER TABLE `TEST_CASE` CHANGE `VERSION_NEW` `VERSION` INT( 11 ) NULL DEFAULT NULL;
- ALTER TABLE `REQUIREMENT_HIERARCHY` CHANGE `LEVEL_NEW` `LEVEL` INT( 11 ) NULL DEFAULT NULL; (RMsis-1.7.1-r183 and below)
- ALTER TABLE `REQUIREMENT_BASELINE` CHANGE `LEVEL_NEW` `LEVEL` INT( 11 ) NULL DEFAULT NULL; (RMsis-1.7.1-r183 and below)
- ALTER TABLE `ATTACHMENT` CHANGE `SIZE_NEW` `SIZE` BIGINT( 20 ) NULL DEFAULT NULL; (RMsis-1.7.1-r183 and below)
- ALTER TABLE `REPORTING` CHANGE `DOMAIN_NEW` `DOMAIN` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL;
- ALTER TABLE `TEST_STEP` CHANGE `ACTION_NEW` `ACTION` LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci; (Only for RMsis-1.7.1-r168 and above)
- Now close MySQL connection
- Go to your work folder (created in step 3), and dump your RMsis database MySQL file (rmsis_db_1)
- mysqldump -u<username> -p<password> --no-create-info --skip-add-drop-table rmsis_db_1 > rmsis_db_1.sql
- Open this SQL file in VIM
- Run command
- :%s/`\(\w\+\)`/\L&/g (it is to change case of table and column name)
- Save and exit editor
- :wq
- Run command
- Open terminal and connect to rmsis_db_1 using MySQL
...