You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
557 B
19 lines
557 B
//! These tests check any kind of runtime-check behaviour
|
|
//!
|
|
//! They depend on all backends mostly for simplicity.
|
|
|
|
use crate::{types, Migration, SqlVariant};
|
|
|
|
/// This test mostly exists to see if we panic
|
|
#[test]
|
|
fn generate_from() {
|
|
let mut m = Migration::new();
|
|
m.create_table("testing", |table| {
|
|
table.add_column("id", types::primary());
|
|
table.add_column("name", types::varchar(64));
|
|
});
|
|
|
|
let _ = m.make_from(SqlVariant::Pg);
|
|
let _ = m.make_from(SqlVariant::Mysql);
|
|
let _ = m.make_from(SqlVariant::Sqlite);
|
|
}
|
|
|