15 Commits

Author SHA1 Message Date
Billy Chan
71dbffc725
Fix clippy (#1426)
* Fix clippy

* Fix clippy
2023-01-27 18:50:20 +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
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
9b6b879122
Migrator test cases with tracing_subscriber 2022-08-25 13:56:41 +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
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
Chris Tsang
4301383b40 Tweaks 2022-06-12 22:30:34 +08:00
Billy Chan
9b41f1c1b1
Migration shouldn't depends on symbol provided by entity crate (#785)
* Migration shouldn't depends on symbol provided by entity crate

* Add docs
2022-06-12 22:25:32 +08:00
Chris Tsang
1984a70cc4 Update tests 2022-05-15 14:02:26 +08:00
Chris Tsang
ec2f282dee Update tests 2022-05-15 13:58:46 +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
e0d7d2bc78 Fix tests 2022-05-09 13:51:21 +08:00
Chris Tsang
75d5c0f5ea Restructure sea-orm-cli & sea-orm-migration 2022-05-09 12:30:58 +08:00