Commit Graph

16 Commits

Author SHA1 Message Date
Dmitriy Pleshevskiy 128047723d chore: remove sqlite database before test 2021-05-23 12:33:14 +03:00
Dmitriy Pleshevskiy 1602069eb5 chore: add transactional ddl 2021-05-23 00:30:43 +03:00
Dmitriy Pleshevskiy c20f3c3411 fix: supports old sqlite version in downgrade 2021-05-17 10:51:53 +03:00
Dmitriy Pleshevskiy 97178fcb02 feat: add sqlite client 2021-05-17 10:06:33 +03:00
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 7ae5eec2c3 chore: add support transactional ddl for client
I didn't know that mysql doesn't support transactional ddl.
It means that we cannot create table, alter table and etc. in
transaction. At the moment migra supports only postgres client,
that can be use transaction for ddl.
2021-04-24 22:39:44 +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 8f06b69f5d feat: apply multiply files
Closes #3
2021-04-09 01:09:51 +03:00
Dmitriy Pleshevskiy 18bf265510 feat: add mysql database supporting 2021-03-26 02:10:41 +03:00
Dmitriy Pleshevskiy f4539f7877 feat: add command to upgrade command
... which adds the possibility to specify the number of
existing migrations to be updated
2021-02-25 00:56:08 +03:00
Dmitriy Pleshevskiy 8aa57a00bc feat: add config to downgrade command
it's new flag --all that rollbacks all applied migrations
from database.
2021-02-25 00:20:44 +03:00
Dmitriy Pleshevskiy fef34be5ac feat: add number to downgrade command config 2021-02-25 00:03:54 +03:00
Dmitriy Pleshevskiy dbc7ddadb7 refac: made the error object simpler 2021-02-22 23:06:08 +03:00
Dmitriy Pleshevskiy e3c3879376 chore: add tests for upgrade command 2021-02-22 00:34:13 +03:00
Dmitriy Pleshevskiy afb1c8a4e3 chore: add test for make command 2021-02-21 23:57:13 +03:00
Dmitriy Pleshevskiy eda1a05d70 chore: change structure of integration tests 2021-02-21 18:51:10 +03:00