Skip to content

Commit 9030249

Browse files
committed
test: check migration type as well
1 parent aebacfd commit 9030249

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

sqlx-core/src/migrate/migration_type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/// Migration Type represents the type of migration
2-
#[derive(Debug, Copy, Clone)]
2+
#[derive(Debug, Copy, Clone, PartialEq)]
33
pub enum MigrationType {
44
/// Simple migration are single file migrations with no up / down queries
55
Simple,

tests/migrate/macro.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ async fn same_output() -> anyhow::Result<()> {
1212
for (e, r) in EMBEDDED.iter().zip(runtime.iter()) {
1313
assert_eq!(e.version, r.version);
1414
assert_eq!(e.description, r.description);
15+
assert_eq!(e.migration_type, r.migration_type);
1516
assert_eq!(e.sql, r.sql);
1617
assert_eq!(e.checksum, r.checksum);
1718
}

0 commit comments

Comments
 (0)