Ryan Kopf
8025199499
Fix the handling of new mod files. ( #2064 )
...
Co-authored-by: ryankopf <git@ryankopf.com>
2024-02-28 20:03:05 +00:00
Chris Tsang
c9a2528546
Revert "sea-orm-cli migrate init: don't overwrite files by default ( #1829 )"
...
This seems to be a breaking change may be we should apply later
2023-12-08 14:16:26 +00:00
chayleaf
3d6124393a
sea-orm-cli migrate init: don't overwrite files by default ( #1829 )
2023-12-08 21:32:25 +08:00
Billy Chan
217894ddad
Drop git2
dependency ( #1769 )
...
* Change of API of SeaSchema 0.12
* [CLI] replace `git2` with `glob`
2023-07-21 21:44:43 +08:00
Abdulqudduus Babalola
e872436547
feat: add support for space-separated migration names ( #1570 )
...
* feat: add ability to create space separated migration names
* fmt
* Trim whitespace
---------
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2023-05-03 19:12:09 +08:00
sani haq
3a5707b1bb
Added a .gitignore
file for migration folder ( #1334 )
...
* added .gitignore file
* add .gitignore
* only add .gitignore if not in a existing git repo
* Use `git2` to detect git repository
---------
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2023-03-23 11:41:13 +08:00
Billy Chan
bf67d827a5
Fix clippy
2023-01-30 11:34:40 +08:00
Chris Tsang
a9aa139af2
Enable --universal-time by default ( #1420 )
...
* Enable --universal-time by default
* Add `--local-time` flag
---------
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2023-01-29 10:56:46 +08:00
Billy Chan
71dbffc725
Fix clippy ( #1426 )
...
* Fix clippy
* Fix clippy
2023-01-27 18:50:20 +08:00
Diwakar Gupta
9c6e5c1fa2
Fixed sea-orm-cli exit status ( #1402 )
2023-01-19 15:40:29 +08:00
Billy Chan
b2185af559
Cleaning up dependency ( #1300 )
...
* Dependency version cleanup
* Update build tool
* Disable default features
* [cli] disable default features
2022-12-16 15:52:00 +08:00
Billy Chan
32061e30b5
Added check to make sure migration name is valid ( #1155 )
...
Co-authored-by: Forest Anderson <forestkzanderson@gmail.com>
2022-10-26 18:19:51 +08:00
Rheydskey
9f2eb3d46c
Add cli feature on sea-orm-migration ( #978 )
...
* Add cli feature on sea-orm-migration
* Add cli feature on sea-orm-cli
* Remove async-std feature and add async-std in the default feature
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-10-26 17:48:06 +08:00
Billy Chan
cb76b8f443
[cli] migrate up should apply all pending migrations ( #1010 )
2022-10-26 17:21:24 +08:00
Billy Chan
b22db842e4
Run migrations on PostgreSQL schema ( #1056 )
...
* Run migrations on PostgreSQL schema
* fmt
* fmt & clippy
* clippy
* [cli] update helper text
2022-10-17 17:16:00 +08:00
Animesh Sahu
ad5e8c1264
[cli] Add -u, --universal-time option in generate
to use Utc instead of Local ( #947 )
2022-09-25 10:33:50 +08:00
Remo Senekowitsch
be0d846d8f
Enable migration generation in modules ( #933 )
...
* Enable migration generation in modules
Previously, migration generation expected migrations
to be at the crate root.
* Fix migration backup file extension
* Document behavior of migration_dir
2022-09-19 23:42:46 +08:00
Billy Chan
c4fa40ab3e
[cli] migrator CLI handles init and generate commands
2022-08-02 16:30:49 +08:00