eef7980222
chore: cosmetic changes
2021-04-24 23:16:30 +03:00
25ea001ec4
Merge pull request #7 from pleshevskiy/task-2
...
feat: single transaction
2021-04-24 21:52:02 +02:00
20e00c3579
chore: fix clippy warnings
2021-04-24 22:48:10 +03:00
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
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
56f4d190de
Merge pull request #6 from pleshevskiy/task-3
...
feat: apply multiply files
2021-04-09 22:30:23 +02:00
244a758154
chore: remove dbg
2021-04-09 23:08:16 +03:00
8f06b69f5d
feat: apply multiply files
...
Closes #3
2021-04-09 01:09:51 +03:00
155b2e6aa2
Merge pull request #5 from pleshevskiy/task-3
...
refac: preparatory work for sebsuquent changes
2021-04-08 19:51:48 +02:00
cb1ca43dcb
Merge pull request #4 from pleshevskiy/stmt
...
chore: move db statements to another trait
2021-04-08 18:04:55 +02:00
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
e81298d1ba
chore: move db statements to another trait
2021-04-08 00:49:38 +03:00
a3907c5784
Update issue templates
2021-03-26 11:47:52 +03:00
ffa64248c5
Update issue templates
2021-03-26 11:15:02 +03:00
a49b9b4ecb
chore: bump version
2021-03-26 02:23:31 +03:00
29ce430e00
doc: update installation guide
2021-03-26 02:22:29 +03:00
42169f9f40
Merge pull request #1 from pleshevskiy/mysql
...
feat: add mysql database supporting
2021-03-26 01:15:29 +02:00
18bf265510
feat: add mysql database supporting
2021-03-26 02:10:41 +03:00
c05bac36e7
chore: bump version
2021-03-25 00:42:15 +03:00
a29c65a9a7
fix: find exists manifest
2021-03-25 00:41:22 +03:00
c8c6765483
chore: fix badge
2021-03-02 00:57:17 +03:00
0d9cd7af71
chore: bump version
2021-03-02 00:54:07 +03:00
62283687a4
chore: update readme
2021-03-02 00:53:56 +03:00
11c374e7b0
feat: add transaction manager
...
now we change database only in transaction
2021-03-02 00:44:57 +03:00
7c8ff199cc
chore: add sample env
2021-03-02 00:44:35 +03:00
9e5c2192d4
feat: add dotenv to load migra config
2021-02-26 01:21:29 +03:00
26a0ddb8aa
chore: bump version
2021-02-25 12:40:03 +03:00
21a868be44
chore: update badges
2021-02-25 12:39:40 +03:00
b240db862d
refac: rename io kind in error enum
2021-02-25 12:25:14 +03:00
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
bd57c75dfc
feat: add config to upgrade command
...
... which adds the possibility to pass a specific migration
name to be updated
2021-02-25 00:47:16 +03:00
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
fef34be5ac
feat: add number to downgrade command config
2021-02-25 00:03:54 +03:00
413e0040d4
chore: rename github workflow
2021-02-24 00:25:06 +03:00
c593bf22dd
ci: remove windows and macos from build matrix
2021-02-24 00:21:07 +03:00
09f3f39c87
ci: add checkout to clippy and fmt tasks
2021-02-24 00:14:43 +03:00
e4bf75f626
ci: remove components from build
2021-02-24 00:11:19 +03:00
fd933a84d3
ci: update github actions
...
- move clippy and fmt to another thread
- add os to matrix
2021-02-24 00:10:04 +03:00
e06d1c0a49
refac: rename variables in migration structure
2021-02-23 18:55:12 +03:00
eb0775e35d
refac: restructure database
2021-02-23 18:44:37 +03:00
d1d09ac912
feat: add command to gen shell completions
2021-02-23 18:16:26 +03:00
f4ad03cee0
refac: use join instead path builder
2021-02-22 23:13:50 +03:00
dbc7ddadb7
refac: made the error object simpler
2021-02-22 23:06:08 +03:00
6e602b17cd
style: change case in sample schema
2021-02-22 16:28:14 +03:00
7dc1477f1f
chore: update migration content for sample db
2021-02-22 16:27:27 +03:00
aa4ac60016
chore: bump version
2021-02-22 12:23:30 +03:00
756295cdef
fix: change install instruction
2021-02-22 12:22:00 +03:00
571f270cbe
chore: update version in crates.io badge
2021-02-22 12:17:20 +03:00
2df3c1b911
chore: bump version
2021-02-22 12:06:02 +03:00
22744ab229
chore: remove appendix from apache license
2021-02-22 11:49:47 +03:00