Aditya Yadav
f6c9d81918
Moving clap to version 4 ( #1468 )
...
* Moving clap to vesion 4
* Moving the sea-orm-migration cli to clap v4
* Removing the deprecated flag from clapv4
* Upgrade clap to 4.3
* Fixup
* .
* Try compile [CLI]
---------
Co-authored-by: aadi58002 <aadi58002gmail.com>
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2023-06-03 11:41:59 +08:00
Billy Chan
cf85d96e44
clippy
2023-04-22 01:02:15 +08:00
Billy Chan
a806898f74
feat(migration): configurable migration table name ( #1511 )
2023-04-13 11:12:01 +08:00
Billy Chan
08659d4f8f
feat: export ConnectionTrait
in sea_orm_migration::prelude
( #1577 )
2023-04-08 21:58:13 +08:00
Billy Chan
737a894e27
Upgrade sea-query
to 0.29 ( #1562 )
...
* Upgrade `sea-query` to 0.29
* clippy
* More upgrades
* fixup
2023-03-22 17:24:42 +08:00
Sergei Ivankov
5737e023a2
Migration information methods ( #1519 )
...
Co-authored-by: Sergei Ivankov <sergeiivankov@pm.me>
2023-03-16 20:28:40 +08:00
Chris Tsang
cd43222280
Tweaks
2023-01-28 01:49:46 +08:00
Billy Chan
6d7bcb35e5
Atomic migration ( #1379 )
...
* Running atomic migration
* refactor
* clippy
* visibility
* Execute migration in transaction when it's a Postgres connection
* Testing rolling back on migrate up and down
* lifetimes elision
* typo
* abort migration before committing nested transaction
2023-01-30 22:55:46 +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
Billy Chan
e246d3faaf
Cont. Upgrade to SeaQuery 0.28.0 ( #1366 )
...
* Upgrade to SeaQuery 0.28.0
* Remove unnecessary heap allocation
* Upgrade sea-query-binder
* Upgrade sea-schema
* Fix
* Upgrade sea-schema
* refactoring
Co-authored-by: Ivan Krivosheev <py.krivosheev@gmail.com>
2023-01-05 20:41:28 +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
Horu
d9ac2f1509
fix(deps): dotenv -> dotenvy ( #1085 )
2022-10-05 23:19:48 +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
Billy Chan
4acdaacebc
Cont. "Delete all PostgreSQL types when calling fresh" ( #991 )
...
* Delete all PostgreSQL types when calling fresh (#765 ) (#864 )
* Delete all PostgreSQL types when calling fresh (#765 )
* Test create db enum migration
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
* Refactoring
Co-authored-by: Denis Gavrilyuk <karpa4o4@gmail.com>
2022-09-25 10:24:27 +08:00
Billy Chan
43495de0aa
Fix clippy warnings - 1 ( #967 )
...
* Fix clippy warnings
* cargo fmt
* Fix clippy warnings
* cargo fmt
2022-08-12 20:02:53 +08:00
Billy Chan
c4fa40ab3e
[cli] migrator CLI handles init and generate commands
2022-08-02 16:30:49 +08:00
Billy Chan
70f1b4cbe0
cargo fmt
2022-07-26 14:50:39 +08:00
Billy Chan
1a3e8c456a
[CI] run clippy checks & fix clippy warnings ( #840 )
...
* Run clippy checks
* Fix clippy warnings
* Clippy checks for `sea-orm-*` crates
* Fix clippy warnings
* Fixup
2022-07-10 15:38:38 +08:00
Chris Tsang
50f9f5ad2f
Merge pull request #755 from SeaQL/apply-old-pending-migration
...
Allow old pending migration to be applied
2022-07-01 02:40:37 +08:00
Billy Chan
1054d6451c
Use file!()
macro to avoid manually defining the name of migration ( #736 )
...
* Add `DeriveMigrationName`
* CLI migrate generate without replacing migration name
* Update migrations
* Fixup
2022-06-29 00:42:59 +08:00
smonv
580fa90023
Bump clap version to 3.2 ( #706 )
...
* bump clap to 3.1.17
sea-orm-migration: bump clap version to 3.1.17
sea-orm-cli: use clap derive API instead of builder API
sea-orm-migration: use clap derive
* Fix clippy warnings
* Migration CLI verbose with default value
* bump clap to 3.2
Co-authored-by: Thanh Van <tvt@smonv.com>
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-06-26 20:52:33 +08:00
Billy Chan
183639dc8c
Migration without depending on async-std ( #758 )
...
* Migration without depending on async-std runtime
* Update examples
* Fixup
2022-05-23 23:24:07 +08:00
Billy Chan
27cef3437c
Allow old pending migration to be applied
2022-05-20 18:04:50 +08:00
Chris Tsang
28e53601c0
Edit
2022-05-15 10:35:06 +08:00
Chris Tsang
7d3258429b
Actually, should throw an error by default
2022-05-15 10:33:21 +08:00
Chris Tsang
5a19f2f3e0
Actually, down should be optional
2022-05-15 10:23:15 +08:00
Billy Chan
9d2cae44b3
Migrator CLI Fixup ( #708 )
...
* CI compile migrator CLI
* sea-orm-migration's CLI with only migration subcommand
* Fix clippy warnings
* Fixup
* `sea-orm-cli migrate init`: write sea-orm-migration version based on CLI version
2022-05-10 23:24:23 +08:00
Chris Tsang
b622a6e1aa
Tweaks
2022-05-09 18:37:37 +08:00
Chris Tsang
31cdecf549
Use SchemaProbe fully
2022-05-09 18:17:44 +08:00
Chris Tsang
07c8af2b3a
Use sea-schema's SchemaProbe
2022-05-09 17:04:12 +08:00
Chris Tsang
75d5c0f5ea
Restructure sea-orm-cli & sea-orm-migration
2022-05-09 12:30:58 +08:00
Billy Chan
498c0154ca
Restructure SeaORM migration
...
Bump codegen's sea-query version [cli]
Update CLI subcommand method
Move migration utility into sea-orm-migration
2022-05-09 12:30:55 +08:00