77 Commits

Author SHA1 Message Date
Billy Chan
9ca01b3e7c
Upgrade tracing-subscriber dependency to 0.3.17 (#1609)
* Upgrade `tracing-subscriber` dependency to 0.3.17

* Revert "fix: `regex` dep should enable `unicode` feature (#1605)"

This reverts commit 41d9a853342155e0b7df4afb15990225b1c8a981.
2023-04-24 14:21:15 +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
Billy Chan
8afc3eb2a3
Prepare 0.12.0 2023-03-16 18:28:03 +08:00
Billy Chan
fe38d5ed25
0.11.1 2023-03-10 22:13:02 +08:00
Chris Tsang
2a4e5e00fd 0.11.0 2023-02-07 02:51:00 +08:00
Chris Tsang
9e36c1103e 0.11.0-rc.2 2023-02-04 16:10:21 +08:00
Chris Tsang
2a15249179 sea-orm-migration 0.11.0-rc.1 2023-02-01 23:46:42 +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
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
cb76b8f443
[cli] migrate up should apply all pending migrations (#1010) 2022-10-26 17:21:24 +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
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
9e57574de2
Run migration script defined in SeaQuery (#1063) 2022-09-23 15:32:18 +08:00
Billy Chan
d016f66a5f
Cargo.toml specify SeaORM homepage 2022-09-02 15:12:16 +08:00
Billy Chan
9b6b879122
Migrator test cases with tracing_subscriber 2022-08-25 13:56:41 +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
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
Ivan Krivosheev
2731878d0e Set minimal rustc version 2022-08-07 02:34:43 +03: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
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
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
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
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