pub async fn create_last_migration_table(
tx: &mut Transaction,
table_name: &str,
) -> Result<(), Error>Expand description
Creates the “last_migration_table” if it doesn’t exist already
This table is used to track which migrations have already been applied.
This would be its rorm shape:
#[derive(Model)
#[rorm(name = "<table_name>")]
struct LastMigrationTable {
#[rorm(id)]
id: i64,
#[rorm(auto_update_time)]
updated_at: OffsetDateTime,
migration_id: i32,
}