|
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 |
|
|
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 |
|
|
6b352c31a2
|
chore: print to stdout in make command
... about successfully created directory with structure for
migration
|
2021-02-21 23:35:59 +03:00 |
|
|
fb86640cbb
|
chore: add badges to readme
|
2021-02-21 18:22:00 +03:00 |
|
|
7d631b1d24
|
fix: future clippy warnings
|
2021-02-21 17:53:43 +03:00 |
|
|
51f631d900
|
chore: add tests for init command
|
2021-02-20 23:07:40 +03:00 |
|
|
a5b3d33bef
|
chore: split tests for...
merge query with params function
|
2021-02-20 22:31:59 +03:00 |
|
|
a4d8218307
|
fix: applied migration names from query response
|
2021-02-19 22:37:27 +03:00 |
|
|
7bd4f3d1f9
|
fix: merge query with params
|
2021-02-19 22:20:48 +03:00 |
|
|
a7ab5572df
|
refac: add database connection manager
feat: add supported client to manifest
|
2021-02-18 12:29:13 +03:00 |
|
|
d4106c50e6
|
refac: move postgres initialization to separate dir
|
2021-02-16 18:11:39 +03:00 |
|
|
9679519380
|
refac: remove unused vars
|
2021-02-15 23:23:35 +03:00 |
|
|
92c07f4181
|
refac: remove stmt constants from manager trait
|
2021-02-15 23:22:13 +03:00 |
|
|
33f392e18e
|
refac: add additional trait for migration names
|
2021-02-15 13:47:45 +03:00 |
|
|
109c9ce52f
|
refac: add migration manager
|
2021-02-15 13:06:09 +03:00 |
|
|
1b16aff6e5
|
refac: rename database connection to postgres
|
2021-02-14 12:10:12 +03:00 |
|
|
481760ee6e
|
refac: add trait for upgrade and downgrade
|
2021-02-14 00:03:37 +03:00 |
|
|
1d8993d1f0
|
refac: rename method
... to open database connection
|
2021-02-13 23:46:21 +03:00 |
|
|
8f834264d8
|
refac: add struct for db connection
|
2021-02-13 23:44:41 +03:00 |
|
|
40c0a43dab
|
refac: move commands to separate folder
|
2021-02-13 00:39:39 +03:00 |
|
|
ba73786a38
|
feat(cli): add error struct
|
2021-02-12 01:25:28 +03:00 |
|
|
db631fddd2
|
refac(cli): move migration struct to another file
|
2021-02-08 23:42:13 +03:00 |
|
|
f588912175
|
style: rename table name in function name
|
2021-02-08 23:39:22 +03:00 |
|
|
edb234d44f
|
feat: add support for custom path
... for config file initialization
|
2021-02-08 07:28:35 +03:00 |
|
|
032e1b7287
|
feat: read database url from env variable
Now we can use migra cli without config initialization
|
2021-02-08 07:01:38 +03:00 |
|
|
fc68f9b6ae
|
refac: revert applied migrations for list
... command and visually separated applied and pending migrations
|
2021-02-06 01:39:17 +03:00 |
|
|
64381eb710
|
feat(cli): implement downgrade migration command
|
2021-02-06 01:37:30 +03:00 |
|
|
b5c2533bc6
|
feat(cli): add migrations table
feat(cli): implement upgrade database subcommand
feat(cli): add available migrations to list subcommand
|
2021-02-06 01:22:00 +03:00 |
|
|
4a9ece8c02
|
chore(cli): move migrations to separate dir
|
2021-02-05 01:46:18 +03:00 |
|
|
e8cce2fca5
|
chore: merge cli with core
|
2021-02-05 01:37:25 +03:00 |
|
|
5833e8802c
|
refac: rename variables in make migration command
|
2021-02-03 10:19:37 +03:00 |
|
|
9d3d44dfa1
|
feat(cli): implement make migration command
chore(deps): add chrono crate
|
2021-02-03 01:07:26 +03:00 |
|
|
9fb8add4b8
|
feat(cli): implement list command
... that returns list of directory with migration
|
2021-02-02 23:50:45 +03:00 |
|
|
38a18180eb
|
chore(cli): add unimplemented commands
|
2021-02-02 00:55:41 +03:00 |
|
|
d175bfa8f0
|
feat(cli): add config path option
|
2021-02-02 00:53:33 +03:00 |
|
|
942edd0f8b
|
feat(cli): add recursive migra config search
... in parent directories
|
2021-02-01 23:51:25 +03:00 |
|
|
4803357a6b
|
refac(cli): implement path builder...
... instead mutated path buf
|
2021-01-31 14:54:54 +03:00 |
|
|
7fa65c8197
|
feat(cli): add apply command
This command provide a possibility to run sql file by name
in root migra directory
|
2021-01-31 13:41:15 +03:00 |
|
|
a14d67105e
|
feat(cli): add database config
|
2021-01-31 13:40:02 +03:00 |
|
|
bc3421b150
|
chore: add simply logging
|
2021-01-31 03:34:38 +03:00 |
|
|
ac27bfc4dd
|
feat(cli): add toml config
- [x] init migra.toml with serialized default config
parameters
- [x] read and desirealize config from migra.toml
|
2021-01-31 03:23:47 +03:00 |
|
|
2811b8b293
|
refac(cli): move opts to separate file
|
2021-01-31 02:54:27 +03:00 |
|