blob: 17ddb092bd4a8d8d3e3254ecc224f3d636a10cc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//! 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);
}
|