Commit Graph

137 Commits

Author SHA1 Message Date
Dmitriy Pleshevskiy 7b9f0b3060 chore: remove funding 2022-03-17 16:53:07 +03:00
Dmitriy Pleshevskiy 9d700a3e99 chore: fix clippy warnings 2021-10-22 00:29:09 +03:00
Dmitriy Pleshevskiy c8940bae1c fix: clippy warnings 2021-08-23 10:18:03 +03:00
Dmitriy Pleshevskiy b11c07163f
Single transaction (#14)
* style: use default instead equal with option value

* chore: add non_exhaustive for enums

* chore: fix clippy warnings

* refac!: single transaction by default

BREAKING CHANGES: we remove single transaction flag from cli
2021-07-30 23:25:43 +03:00
Dmitriy Pleshevskiy 97d4755b4d
Create FUNDING.yml 2021-07-06 23:52:14 +03:00
Dmitriy Pleshevskiy 9988943aae chore: bump migra cli version 2021-06-13 01:41:26 +03:00
Dmitriy Pleshevskiy ec02367680
Migra core (#11)
* feat(core): init migra lib
* refac(core): add utils for migration list
* feat(core): add managers
* refac(core): add batch exec trait
* refac(core): smarter managers
* refac(cli): removed adapter, builder
* refac(cli): use migra core for cli
* chore(cli): add dev deps for tests
* chore(cli): improve error handling
* refac(core): make migrations simpler
* refac(cli): change transaction utils
* chore(core): add documentation
2021-06-13 01:39:56 +03:00
Dmitriy Pleshevskiy c144086cb1
Merge pull request #10 from pleshevskiy/sqlite
feat: add sqlite client
2021-05-23 13:44:43 +03:00
Dmitriy Pleshevskiy 1d4f089e77 chore: don't support rusqlite feature name 2021-05-23 13:35:11 +03:00
Dmitriy Pleshevskiy 0633780b84 chore: add sqlite to readme 2021-05-23 13:33:12 +03:00
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 3845cd09d6 🎉 release migra-cli 0.5 2021-05-16 17:06:34 +03:00
Dmitriy Pleshevskiy 885abd0871
Merge pull request #9 from pleshevskiy/extend-manifest
Extend migra manifest
2021-05-16 16:04:34 +02:00
Dmitriy Pleshevskiy 7ae88ce3d3 chore: return new fn for migration manager 2021-05-16 17:01:41 +03:00
Dmitriy Pleshevskiy 285d1778b4 style: move migra toml constant 2021-05-16 16:57:20 +03:00
Dmitriy Pleshevskiy def6534fd1 feat: add date format option 2021-05-16 16:55:59 +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 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 25ea001ec4
Merge pull request #7 from pleshevskiy/task-2
feat: single transaction
2021-04-24 21:52:02 +02:00
Dmitriy Pleshevskiy 20e00c3579 chore: fix clippy warnings 2021-04-24 22:48:10 +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 56f4d190de
Merge pull request #6 from pleshevskiy/task-3
feat: apply multiply files
2021-04-09 22:30:23 +02:00
Dmitriy Pleshevskiy 244a758154 chore: remove dbg 2021-04-09 23:08:16 +03:00
Dmitriy Pleshevskiy 8f06b69f5d feat: apply multiply files
Closes #3
2021-04-09 01:09:51 +03:00
Dmitriy Pleshevskiy 155b2e6aa2
Merge pull request #5 from pleshevskiy/task-3
refac: preparatory work for sebsuquent changes
2021-04-08 19:51:48 +02:00
Dmitriy Pleshevskiy cb1ca43dcb
Merge pull request #4 from pleshevskiy/stmt
chore: move db statements to another trait
2021-04-08 18:04:55 +02:00
Dmitriy Pleshevskiy 07d17c9e93 refac: preparatory work for subsequent changes
Moved the main logic such as running a command or getting a config
into it.

Changed incoming paramenters for commands.
2021-04-08 01:50:51 +03:00
Dmitriy Pleshevskiy e81298d1ba chore: move db statements to another trait 2021-04-08 00:49:38 +03:00
Dmitriy Pleshevskiy a3907c5784 Update issue templates 2021-03-26 11:47:52 +03:00
Dmitriy Pleshevskiy ffa64248c5 Update issue templates 2021-03-26 11:15:02 +03:00
Dmitriy Pleshevskiy a49b9b4ecb chore: bump version 2021-03-26 02:23:31 +03:00
Dmitriy Pleshevskiy 29ce430e00 doc: update installation guide 2021-03-26 02:22:29 +03:00
Dmitriy Pleshevskiy 42169f9f40
Merge pull request #1 from pleshevskiy/mysql
feat: add mysql database supporting
2021-03-26 01:15:29 +02:00
Dmitriy Pleshevskiy 18bf265510 feat: add mysql database supporting 2021-03-26 02:10:41 +03:00
Dmitriy Pleshevskiy c05bac36e7 chore: bump version 2021-03-25 00:42:15 +03:00
Dmitriy Pleshevskiy a29c65a9a7 fix: find exists manifest 2021-03-25 00:41:22 +03:00
Dmitriy Pleshevskiy c8c6765483 chore: fix badge 2021-03-02 00:57:17 +03:00
Dmitriy Pleshevskiy 0d9cd7af71 chore: bump version 2021-03-02 00:54:07 +03:00
Dmitriy Pleshevskiy 62283687a4 chore: update readme 2021-03-02 00:53:56 +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 7c8ff199cc chore: add sample env 2021-03-02 00:44:35 +03:00
Dmitriy Pleshevskiy 9e5c2192d4 feat: add dotenv to load migra config 2021-02-26 01:21:29 +03:00
Dmitriy Pleshevskiy 26a0ddb8aa chore: bump version 2021-02-25 12:40:03 +03:00
Dmitriy Pleshevskiy 21a868be44 chore: update badges 2021-02-25 12:39:40 +03:00
Dmitriy Pleshevskiy b240db862d refac: rename io kind in error enum 2021-02-25 12:25:14 +03:00