pub trait MigrationConnection: Connection {
    fn setup(&mut self) -> QueryResult<usize>;
}
Expand description

A trait indicating that a connection could be used to manage migrations

Only custom backend implementations need to think about this trait

Required Methods§

Setup the following table:

diesel::table! {
     __diesel_schema_migrations(version) {
         version -> Text,
         /// defaults to `CURRENT_TIMESTAMP`
         run_on -> Timestamp,
     }
}

Implementors§