Commit Graph

9 Commits

Author SHA1 Message Date
Dmitriy Pleshevskiy 11874bd8a4 feat: add migrations config to manifest
- added migrations directory path
- added migrations table name
2021-05-16 16:39:24 +03:00
Dmitriy Pleshevskiy 83a4155d76 refac: add migrations table name to manifest 2021-04-26 12:18:12 +03:00
Dmitriy Pleshevskiy eef7980222 chore: cosmetic changes 2021-04-24 23:16:30 +03:00
Dmitriy Pleshevskiy f98dd4f0c8 feat: single transaction
I added a single transaction option for apply, upgrade, and
downgrade commands, which wraps all migrations into a single
transaction. This gives you the ability to safely roll up
migrations and, if some unforeseen situation occurs, roll them back.

Unfortunately if there is an error in syntax, mysql will not
rollback the migration and commits automatically :( I will
research this issue.

Closes #2
2021-04-24 01:58:19 +03:00
Dmitriy Pleshevskiy e81298d1ba chore: move db statements to another trait 2021-04-08 00:49:38 +03:00
Dmitriy Pleshevskiy 18bf265510 feat: add mysql database supporting 2021-03-26 02:10:41 +03:00
Dmitriy Pleshevskiy 11c374e7b0 feat: add transaction manager
now we change database only in transaction
2021-03-02 00:44:57 +03:00
Dmitriy Pleshevskiy e06d1c0a49 refac: rename variables in migration structure 2021-02-23 18:55:12 +03:00
Dmitriy Pleshevskiy eb0775e35d refac: restructure database 2021-02-23 18:44:37 +03:00