1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
//! Instances for documentation tests use crate::{Migration, MigrationGroup}; /// ```rust /// let _ = oapth::Migration::new( /// 1, /// "create_author", /// "CREATE TABLE author (id INT NOT NULL PRIMARY KEY, name VARCHAR(50) NOT NULL)", /// "DROP TABLE author", /// ); /// ``` #[inline] pub fn migration() -> Migration { Migration::new( 1, "create_author", "CREATE TABLE author (id INT NOT NULL PRIMARY KEY, name VARCHAR(50) NOT NULL)", "DROP TABLE author", ) } /// ```rust /// let _ = oapth::MigrationGroup::new(1, "initial"); /// ``` #[inline] pub fn migration_group() -> MigrationGroup { MigrationGroup::new(1, "initial") }