Skip to content

Commit 9897817

Browse files
committed
Fix test issue
1 parent fe2c2c8 commit 9897817

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

  • crates/vespertide-macro/src

crates/vespertide-macro/src/lib.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ impl Parse for MacroInput {
5454
}
5555
}
5656

57+
/// Build a migration block (non-verbose).
58+
pub(crate) fn build_migration_block(
59+
migration: &vespertide_core::MigrationPlan,
60+
baseline_schema: &mut Vec<vespertide_core::TableDef>,
61+
) -> Result<proc_macro2::TokenStream, String> {
62+
build_migration_block_inner(migration, baseline_schema, false)
63+
}
64+
5765
/// Build a migration block with optional verbose logging.
5866
pub(crate) fn build_migration_block_verbose(
5967
migration: &vespertide_core::MigrationPlan,
@@ -217,6 +225,14 @@ fn build_migration_block_inner(
217225
Ok(block)
218226
}
219227

228+
fn generate_migration_code(
229+
pool: &Expr,
230+
version_table: &str,
231+
migration_blocks: Vec<proc_macro2::TokenStream>,
232+
) -> proc_macro2::TokenStream {
233+
generate_migration_code_inner(pool, version_table, migration_blocks, false)
234+
}
235+
220236
fn generate_migration_code_inner(
221237
pool: &Expr,
222238
version_table: &str,

0 commit comments

Comments
 (0)