Archived
1
0
Fork 0
Commit graph

153 commits

Author SHA1 Message Date
9552ece678 chore: fix cli 2021-06-13 01:12:13 +03:00
7f478671b1 chore: add documentation for migra core crate 2021-06-13 01:09:46 +03:00
f913952df0 refac: move run in transaction to cli utils 2021-06-12 22:48:47 +03:00
7c29bcb113 chore: fix clippy warnings 2021-06-12 22:31:17 +03:00
b78651f81d refac: change transaction utils 2021-06-12 00:32:00 +03:00
0318c4eb4d refac: move transaction utils to core 2021-06-10 23:54:13 +03:00
687062fd76 refac: make migrations simpler 2021-06-10 23:40:30 +03:00
5e50da32e8 chore: open private conn field 2021-06-08 00:38:54 +03:00
7f93215926 refac: rename client mod 2021-06-07 23:57:32 +03:00
6381c99727 chore: use panic instead eprint 2021-06-07 00:41:50 +03:00
261e6fdbc6 chore: remove unused code 2021-06-07 00:37:05 +03:00
a0ef76164f chore: improve error handling 2021-06-07 00:33:59 +03:00
30482fbb79 chore: return manual migrations table name 2021-06-06 15:16:00 +03:00
14cee3eaea fix: applied migrations 2021-06-06 14:52:06 +03:00
9d86069e8f chore: add dev deps for tests 2021-06-06 13:27:17 +03:00
44f7ca30e8 refac(cli): use migra core for cli 2021-06-06 01:25:45 +03:00
c71e8fe33f feat(clients): move clients to separate dir
refac(core): add batch exec trait
refac(core): smarter managers
refac(cli): removed adapter, builder
2021-06-03 00:22:59 +03:00
bb9be306d9 refac: mysql client with core lib 2021-05-30 23:28:06 +03:00
1a59331ecf feat: add managers 2021-05-30 23:27:42 +03:00
65ec318e9d chore: add errors for managers 2021-05-30 23:27:18 +03:00
5a4a3c8eb0 feat: add error and fs utils 2021-05-23 23:28:29 +03:00
2a2ce85381 refac: add utils for migration list 2021-05-23 23:28:11 +03:00
f2ee2575a1 feat: init migra lib 2021-05-23 14:00:38 +03:00
c144086cb1
Merge pull request #10 from pleshevskiy/sqlite
feat: add sqlite client
2021-05-23 13:44:43 +03:00
1d4f089e77 chore: don't support rusqlite feature name 2021-05-23 13:35:11 +03:00
0633780b84 chore: add sqlite to readme 2021-05-23 13:33:12 +03:00
128047723d chore: remove sqlite database before test 2021-05-23 12:33:14 +03:00
1602069eb5 chore: add transactional ddl 2021-05-23 00:30:43 +03:00
c20f3c3411 fix: supports old sqlite version in downgrade 2021-05-17 10:51:53 +03:00
97178fcb02 feat: add sqlite client 2021-05-17 10:06:33 +03:00
3845cd09d6 🎉 release migra-cli 0.5 2021-05-16 17:06:34 +03:00
885abd0871
Merge pull request #9 from pleshevskiy/extend-manifest
Extend migra manifest
2021-05-16 16:04:34 +02:00
7ae88ce3d3 chore: return new fn for migration manager 2021-05-16 17:01:41 +03:00
285d1778b4 style: move migra toml constant 2021-05-16 16:57:20 +03:00
def6534fd1 feat: add date format option 2021-05-16 16:55:59 +03:00
11874bd8a4 feat: add migrations config to manifest
- added migrations directory path
- added migrations table name
2021-05-16 16:39:24 +03:00
83a4155d76 refac: add migrations table name to manifest 2021-04-26 12:18:12 +03:00
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