115 Commits

Author SHA1 Message Date
Jérémie Drouet
055dbf02d4
fix: update setting search path in postgres (#2241)
* fix: update setting search path in postgres

When using multiple schemas in search path for postgres, using quoted string breaks the ability to use multiple schemas.
Removing the quotes fixes it.

* Add test cases

---------

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2024-06-19 16:05:14 +08:00
Billy Chan
0c39e77c7e
Migration schema nullable column set null explicitly (#2255)
* Migration schema set null explicitly

* Migration test use schema helper
2024-06-19 15:56:48 +08:00
Chris Tsang
987cb38aaf 1.0.0-rc.5 2024-05-29 13:46:38 +01:00
Billy Chan
0798bf2037
1.0.0-rc.4 2024-05-03 16:07:49 +08:00
Billy Chan
36a151bba7
Added ColumnType::Blob (#2213)
* Added `ColumnType::Blob`

* Fix

* Fix

* Use latest rc versions

* bump sea-query & sea-schema

* fix loco examples

* fix loco examples

* revert
2024-05-03 16:07:36 +08:00
Billy Chan
7f0290de3f
Bump sea-schema 2024-05-02 13:18:57 +08:00
Billy Chan
c8c02f6f6e
Upstream Changes - 5 (#2176)
* Upstream Changes - 5

* clippy

* more
2024-03-28 16:25:31 +08:00
Billy Chan
0ff000b8f8
Upstream Changes - 4 (#2168)
* cli: generate entity ignore default database schema

* fixup

* select result is `i32`

* fix

* clippy

* revert

* revert

* revert

* revert
2024-03-27 16:19:03 +08:00
Billy Chan
cdf216ccb1
1.0.0-rc.3 2024-03-27 00:17:41 +08:00
Chris Tsang
5d78e56f8c Fix sea-schema 2024-03-24 20:16:46 +00:00
Chris Tsang
38a7e551bf Fix dependency 2024-03-24 19:52:23 +00:00
Billy Chan
a321f0a566
Upstream Changes - 3 (#2155)
* Upstream Changes - 3

* refactor

* revert
2024-03-19 16:57:46 +08:00
Chris Tsang
65de9f929c 1.0.0-rc.2 2024-03-15 23:31:56 +00:00
Chris Tsang
88128ee2aa [cli] test 2024-03-15 23:11:37 +00:00
Chris Tsang
8f406575e7 Upgrade sea-schema 2024-03-15 23:01:52 +00:00
Billy Chan
42553b6624
1.0.0-rc.1 2024-02-06 14:14:09 +08:00
Billy Chan
94403b5659
migration: schema helper (#2099)
* Adapted loco-rs/schema.rs

* avoid `&mut ColumnDef` after upgraded to sea-query 0.31.0

* refactoring

* rewrite schema.rs

* revert

* fmt

* fix

* loco_example: pin loco-rs version

* refactor
2024-02-06 14:10:36 +08:00
Billy Chan
cef380b977
SQLite type mappings (#2077)
* sqlite: deps

* sqlite: update data type mappings

* sqlite: decimal test cases

* sqlite: try negative numbers

* fixup

* fixup

* fmt

* clippy

* fixup

* fixup

* fixup

* refactor

* fix

* Drop the use of `rust_decimal_macros` (#2078)

* sqlite: decimal -> real

* revert

* Bump dependencies

* Fixup

* Fixup

* Fixup

* Fixup

* Refactor

* Refactor

* Refactor
2024-02-05 14:42:55 +08:00
Chris Tsang
390ca0f0f6 Edit #2083 2024-01-27 14:36:26 +00:00
Andrea Corradi
c56c072f27
Enable sqlite returning with feature flag (#2070)
* Enable sqlite returning with feature flag

* Add runtime check for sqlite version

* Apply suggestions from code review

* Fix clippy

* Rename feature

* Fix tests when feature flag is not enabled

---------

Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2024-01-26 04:28:59 +08:00
Chris Tsang
70d4278598 0.12.12 2024-01-22 09:48:29 +00:00
Chris Tsang
260b8a4076 0.12.11 2024-01-14 16:10:33 +00:00
Chris Tsang
4a59ca681b 0.12.10 2023-12-14 19:42:32 +00:00
Chris Tsang
1ce3778c61 0.12.6 2023-11-13 09:03:26 +00:00
Chris Tsang
070a30aab1 0.12.5 2023-11-12 20:14:29 +00:00
Chris Tsang
240620176c 0.12.4 2023-10-19 19:28:46 +01:00
Chris Tsang
f9db14c686 0.12.3 2023-09-22 18:13:25 +01:00
Diptesh Choudhuri
b029e87fd9
Check if an index exists (#1828)
* feat: add method to check for index

* tests(sea-orm-migrations): add index to cake name

* tests(sea-orm-migrations): check if `has_index` works

* Update sea-orm-migration/tests/common/migration/m20220118_000001_create_cake_table.rs

* Update Cargo.toml

---------

Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2023-09-14 16:07:33 +08:00
Chris Tsang
242237aa51 0.12.2 2023-08-04 20:44:05 +01:00
Chris Tsang
1e6b10b532 0.12.1 2023-07-27 15:01:42 +01:00
Chris Tsang
96087291c2 0.12.0-rc.5 2023-07-25 16:28:35 +08:00
Aidan Gauland
b14a88f7ae
Expose sea-orm feature flags in sea-orm-migration (#1775)
Some features of the sea-query language are unavailable in migrations with the default feature flags, so we need to be able to enable them in sea-orm-migration
2023-07-24 04:53:04 +08:00
Billy Chan
9b54797dd7
Upgrade SQLx to v0.7 (#1742)
* Upgrade SQLx to v0.7

* Refactoring

* Fixup

* Bump SeaSchema version

* Fixup

* Refactoring

* Refactoring

* dep

* Bump

* Update sea-schema

* Update sea-schema

---------

Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2023-07-22 01:56:48 +08:00
Chris Tsang
ae899d6744 Remove sea-query's Iden macro 2023-07-13 10:36:56 +01:00
Chris Tsang
4e8d0b0c0c 0.12.0-rc.4 2023-07-08 00:14:02 +08:00
Chris Tsang
b45534c8c2 0.12.0-rc.3 2023-06-22 07:00:42 +08:00
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
44a94d65d2
Bump SeaQuery and SeaSchema to new latest RC version (#1661) 2023-05-18 16:51:13 +08:00
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