Proposal:
I want to be able to manage a manticore db schema using migration files so that I have a repeatable flow for different environment.
e.g a migrations directory with the SQL code to create / update tables like migrations/1_init_tables.sql, migrations/2_update_table.sql.
I use the rust sqlx library usually and flyway for some java repos but when I try to do a migration I will get the following error
sqlx migrate run --source src/indexer/migrations --database-url mysql://localhost:9306 --dry-run
error: error returned from database: 1064 (42000): P01: syntax error, unexpected '(' near '(SELECT CONCAT(@@sql_mode, ',PIPES_AS_CONCAT,NO_ENGINE_SUBSTITUTION')),time_zone='+00:00',NAMES utf8mb4 COLLATE utf8mb4_unicode_ci;'
Checklist:
To be completed by the assignee. Check off tasks that have been completed or are not applicable.
Details
Proposal:
I want to be able to manage a manticore db schema using migration files so that I have a repeatable flow for different environment.
e.g a
migrationsdirectory with the SQL code to create / update tables likemigrations/1_init_tables.sql,migrations/2_update_table.sql.I use the rust sqlx library usually and flyway for some java repos but when I try to do a migration I will get the following error
Checklist:
To be completed by the assignee. Check off tasks that have been completed or are not applicable.
Details