11 Commits

Author SHA1 Message Date
Billy Chan
a321f0a566
Upstream Changes - 3 (#2155)
* Upstream Changes - 3

* refactor

* revert
2024-03-19 16:57:46 +08: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
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
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
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
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