39 Commits

Author SHA1 Message Date
Chris Tsang
2a15249179 sea-orm-migration 0.11.0-rc.1 2023-02-01 23:46:42 +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
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
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
Chris Tsang
97d961f123 sea-orm-migration 0.10.3 2022-11-14 15:08:25 +08:00
Chris Tsang
c76f847669 sea-orm-migration 0.10.2 2022-11-06 21:03:37 +08:00
Chris Tsang
40e44b31dd Update MSRV to 1.65 2022-11-06 21:03:35 +08:00
Billy Chan
61a390f049
sea-orm-migration 0.10.1 2022-10-27 16:03:40 +08:00
Billy Chan
c91aa354b4
Bump sea-schema to 0.10.2 2022-10-27 15:41:10 +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
f65340680a
[cli] FIXUP - correctly generate entity with Postgres Enum field (#1153) 2022-10-26 17:01:58 +08:00
Chris Tsang
8d7230d6ec Dependency 2022-10-19 00:21:47 +08:00
Billy Chan
4df9a2672a
Fixup 2022-10-18 19:06:38 +08:00
Billy Chan
468cbb9baf
Fixup 2022-10-17 22:00:42 +08:00
Horu
d9ac2f1509
fix(deps): dotenv -> dotenvy (#1085) 2022-10-05 23:19:48 +08:00
Billy Chan
d016f66a5f
Cargo.toml specify SeaORM homepage 2022-09-02 15:12:16 +08:00
Chris Tsang
13b53369e2 Prepare for 0.10.0 2022-08-20 22:47:31 +08:00
Chris Tsang
e617599d92 sea-orm-migration 0.9.2 2022-08-20 14:06:55 +08:00
Ivan Krivosheev
2731878d0e Set minimal rustc version 2022-08-07 02:34:43 +03:00
Chris Tsang
127619f4f5 sea-orm-migration 0.9.1 2022-07-22 00:14:26 +08:00
Billy Chan
018dcdff92
[cli] bump sea-schema to 0.9.3 (SeaQL/sea-orm#876) 2022-07-20 16:42:59 +08:00
Chris Tsang
7e8c8fabe7 sea-orm-migration 0.9.0 2022-07-12 00:27:42 +08:00
Chris Tsang
bfe6eb39d5
Cursor pagination (#822)
* Cursor pagination

* Apply filter / range filter on cursor; Allow non-primary key filter

* Fixup

* Update cursor API

* Cursor pagination with composite keys

* Docs

* Rename cursor() to cursor_by()

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-07-10 15:08:38 +08:00
Billy Chan
d6831e5295
Bump version of sqlx, sea-query, sea-schema, time and uuid (#834)
* Bump version of sqlx, sea-query, sea-schema, time and uuid

* PostgreSQL `u32` was wrapped in `Oid` (launchbadge/sqlx#1602)

* Update test cases

* Fix clippy warnings

* cargo fmt

* Fix clippy warnings

* Bump sea-schema to ^0.9.2

* Update test cases

* Pin on sea-query minor version
2022-07-05 01:05:11 +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
Chris Tsang
12ec00272c Revert "Cursor Pagination (#754)"
This reverts commit 6f9dbd260e6e004c369abe0019b4374253db7d3b.
2022-06-26 18:23:47 +08:00
Billy Chan
6f9dbd260e
Cursor Pagination (#754)
* Cursor pagination

* Apply filter / range filter on cursor; Allow non-primary key filter

* Fixup

* Update cursor API

* Cursor pagination with composite keys

* Docs
2022-06-26 17:48:00 +08:00
Billy Chan
2eb02cfbe0
Fix SeaSchema's SQLx version to ^0.5 (#798) 2022-06-17 12:20:16 +08:00
Chris Tsang
8f0c01dbec sea-orm-migration 0.8.3 2022-05-28 17:05:48 +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
Chris Tsang
e00562695e sea-orm-migration 0.8.2 2022-05-15 17:46:15 +08:00
Chris Tsang
e4b38a9898 sea-orm-migration 0.8.1 2022-05-10 23:33:44 +08:00
Chris Tsang
4b1ec79cd6 sea-orm-migration 0.8.0 2022-05-10 00:09:28 +08:00
Chris Tsang
fb69759be9 Build script 2022-05-09 23:47:04 +08:00
Chris Tsang
2794410a08 Update sea-schema 2022-05-09 21:02:53 +08:00
Chris Tsang
07c8af2b3a Use sea-schema's SchemaProbe 2022-05-09 17:04:12 +08:00
Chris Tsang
730b52088f Add tests 2022-05-09 12:31: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