6.3 → 7.1 should work without issues, but there might be a problem with your current 6.3 DB scheme already.
When you open the About dialog of your server, what database schema version do you see? You can also check that directly in the database:
select max(Version) from db_migrations;
6.3 should be on DB Schema version 3:
Also please run the following command to verify that there are no hidden procedures in your database anymore:
I just found out that I was installing Enterprise Edition not Team Edition I want. But still encounter same error message after correcting it.
When you open the About dialog of your server, what database schema version do you see?
Mattermost Version: 6.3.10
Database Schema Version: 6.3.10
Database: mysql
You can also check that directly in the database:
mysql> use mattermost
mysql> select max(Version) from db_migrations;
+--------------+
| max(Version) |
+--------------+
| 25 |
+--------------+
1 row in set (0.00 sec)
Also please run the following command to verify that there are no hidden procedures in your database anymore
mysqldump --no-data --routines mattermost | grep PROCE
/*!50003 DROP PROCEDURE IF EXISTS `RenameSolarizedThemeWithUnderscore` */;
CREATE DEFINER=`mmuser`@`localhost` PROCEDURE `RenameSolarizedThemeWithUnderscore`()
It seems that there is still hidden procedure RenameSolarizedThemeWithUnderscore in my db.
How to I drop it properly or is there any other thing I should do first?
Awesome, that’s great to hear! I find it interesting though that you’ve been on database schema version 25 earlier, did you maybe downgrade again without also reverting the database? The blocking procedure in question is part of DB schema version 26 which only comes with 6.4.0:
Waht’s your current DB schema version? With 7.1.0 it should be 89 and if it’s not, we need to fix that.
After a day of trying. I failed to reproduce the very first error from my mattermost db backup.
It become upgrading with no pains in my test linux machine.
It would better if there is another command to DROP the procedure before CREATE and CALL it.
There will be not need to add the command unless this kind of error happened over and over again.
What’s your current DB schema version? With 7.1.0 it should be 89 and if it’s not, we need to fix that.
Isn’t that always the case with errors you want to reproduce?
Schema 95 is perfect for 7.1.5 and yes, future db migrations usually use a CREATE PROCEDURE ... IF NOT EXISTS approach, this is an older migration that obviously doesn’t have this.