MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / MigrationTrait

Interface MigrationTrait

sea-orm-migration/src/lib.rs:26–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24/// The migration definition
25#[async_trait::async_trait]
26pub trait MigrationTrait: MigrationName + Send + Sync {
27 /// Define actions to perform when applying the migration
28 async fn up(&self, manager: &SchemaManager) -> Result<(), DbErr>;
29
30 /// Define actions to perform when rolling back the migration
31 async fn down(&self, _manager: &SchemaManager) -> Result<(), DbErr> {
32 Err(DbErr::Migration("We Don't Do That Here".to_owned()))
33 }
34}

Callers

nothing calls this directly

Implementers 15

m20220101_000001_create_table.rssea-orm-cli/template/migration/src/m20
m20220118_000002_create_fruit_table.rssea-orm-migration/tests/common/migrati
m20220923_000001_seed_cake_table.rssea-orm-migration/tests/common/migrati
m20220118_000001_create_cake_table.rssea-orm-migration/tests/common/migrati
m20230109_000001_seed_cake_table.rssea-orm-migration/tests/common/migrati
m20220118_000003_seed_cake_table.rssea-orm-migration/tests/common/migrati
m20220118_000004_create_tea_enum.rssea-orm-migration/tests/common/migrati
m20240520_173001_files.rsexamples/loco_seaography/migration/src
m20231103_114510_notes.rsexamples/loco_seaography/migration/src
m20220101_000001_users.rsexamples/loco_seaography/migration/src
m20230101_000003_create_cake_table.rsexamples/seaography_example/migration/
m20230102_000001_seed_bakery_data.rsexamples/seaography_example/migration/

Calls

no outgoing calls

Tested by

no test coverage detected