guilhermechapiewski / simple-db-migrate

simple-db-migrate is a generic database migration tool inpired on Rails migrations.

Home Page:http://guilhermechapiewski.github.com/simple-db-migrate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does simple-db-migrate support adding stored procedure?

weizhu-us opened this issue · comments

In order for SP to work, I will need to set DELIMITER and the simple-db-migrate parser parses the string by ";" which won't work.
Also, it gives syntax error, even I put
DELIMITER$$
by itself in the script.

simple_db_migrate.core.exceptions.MigrationException: error executing migration: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DELIMITER$$' at line 1")

[ERROR DETAILS] SQL command was:
DELIMITER$$

I have a fix for that. I will submit pull request after I get the approval.

Hi @weizhu-us

can you help me testing this 5b70e16 ?

Fixed on 1ef55b7
Take a look on the example on readme