Commit Graph

137 Commits

Author SHA1 Message Date
Dmitriy Pleshevskiy 40c0a43dab refac: move commands to separate folder 2021-02-13 00:39:39 +03:00
Dmitriy Pleshevskiy 20a520b662 feat: tests for list command 2021-02-12 01:25:55 +03:00
Dmitriy Pleshevskiy ba73786a38 feat(cli): add error struct 2021-02-12 01:25:28 +03:00
Dmitriy Pleshevskiy db631fddd2 refac(cli): move migration struct to another file 2021-02-08 23:42:13 +03:00
Dmitriy Pleshevskiy f588912175 style: rename table name in function name 2021-02-08 23:39:22 +03:00
Dmitriy Pleshevskiy 80c9b6988b chore(cli): bump version 2021-02-08 07:42:39 +03:00
Dmitriy Pleshevskiy e8ac947f3e chore: add simple readme 2021-02-08 07:41:52 +03:00
Dmitriy Pleshevskiy edb234d44f feat: add support for custom path
... for config file initialization
2021-02-08 07:28:35 +03:00
Dmitriy Pleshevskiy 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
Dmitriy Pleshevskiy 1b8c2a4273 chore: update cargo manifest 2021-02-06 01:52:57 +03:00
Dmitriy Pleshevskiy fc68f9b6ae refac: revert applied migrations for list
... command and visually separated applied and pending migrations
2021-02-06 01:39:17 +03:00
Dmitriy Pleshevskiy 64381eb710 feat(cli): implement downgrade migration command 2021-02-06 01:37:30 +03:00
Dmitriy Pleshevskiy 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
Dmitriy Pleshevskiy 4a9ece8c02 chore(cli): move migrations to separate dir 2021-02-05 01:46:18 +03:00
Dmitriy Pleshevskiy e8cce2fca5 chore: merge cli with core 2021-02-05 01:37:25 +03:00
Dmitriy Pleshevskiy 5833e8802c refac: rename variables in make migration command 2021-02-03 10:19:37 +03:00
Dmitriy Pleshevskiy 9d3d44dfa1 feat(cli): implement make migration command
chore(deps): add chrono crate
2021-02-03 01:07:26 +03:00
Dmitriy Pleshevskiy 9fb8add4b8 feat(cli): implement list command
... that returns list of directory with migration
2021-02-02 23:50:45 +03:00
Dmitriy Pleshevskiy 38a18180eb chore(cli): add unimplemented commands 2021-02-02 00:55:41 +03:00
Dmitriy Pleshevskiy d175bfa8f0 feat(cli): add config path option 2021-02-02 00:53:33 +03:00
Dmitriy Pleshevskiy 02f49a5d67 refac(cli): rename migra bin 2021-02-02 00:11:00 +03:00
Dmitriy Pleshevskiy 942edd0f8b feat(cli): add recursive migra config search
... in parent directories
2021-02-01 23:51:25 +03:00
Dmitriy Pleshevskiy cc6899d416 refac(core): impl from path trait for builder 2021-02-01 23:50:42 +03:00
Dmitriy Pleshevskiy 49f14be548 chore: init sample folder 2021-02-01 23:49:26 +03:00
Dmitriy Pleshevskiy 0d47938a7e chore: init workspace 2021-02-01 23:49:00 +03:00
Dmitriy Pleshevskiy 4803357a6b refac(cli): implement path builder...
... instead mutated path buf
2021-01-31 14:54:54 +03:00
Dmitriy Pleshevskiy 95e41a7b8d feat(core): add path builder 2021-01-31 14:49:34 +03:00
Dmitriy Pleshevskiy 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
Dmitriy Pleshevskiy 26ee5bf26e chore: bump package versions 2021-01-31 13:40:52 +03:00
Dmitriy Pleshevskiy a14d67105e feat(cli): add database config 2021-01-31 13:40:02 +03:00
Dmitriy Pleshevskiy d8ed9fd25a feat(core): add database utils 2021-01-31 13:39:00 +03:00
Dmitriy Pleshevskiy bc3421b150 chore: add simply logging 2021-01-31 03:34:38 +03:00
Dmitriy Pleshevskiy 7aa350f2ba chore: add migra to spell 2021-01-31 03:25:20 +03:00
Dmitriy Pleshevskiy 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
Dmitriy Pleshevskiy 2811b8b293 refac(cli): move opts to separate file 2021-01-31 02:54:27 +03:00
Dmitriy Pleshevskiy a9b3351d82 feat(cli): add structopt 2021-01-31 02:40:20 +03:00
Dmitriy Pleshevskiy d22af2231c initial commit 2021-01-31 02:08:06 +03:00