File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,15 +18,15 @@ pub async fn apply(db: &Database) -> anyhow::Result<()> {
18
18
) ;
19
19
return Ok ( ( ) ) ;
20
20
}
21
- log:: info !( "Applying migrations from '{}'" , migrations_dir. display( ) ) ;
22
- let migrator = Migrator :: new ( migrations_dir)
21
+ log:: debug !( "Applying migrations from '{}'" , migrations_dir. display( ) ) ;
22
+ let migrator = Migrator :: new ( migrations_dir. clone ( ) )
23
23
. await
24
24
. with_context ( || migration_err ( "preparing the database migration" ) ) ?;
25
25
if migrator. migrations . is_empty ( ) {
26
- log:: info!( "No migration found. \
26
+ log:: info!( "No migration found in {} . \
27
27
You can specify database operations to apply when the server first starts by creating files \
28
28
in {MIGRATIONS_DIR}/<VERSION>_<DESCRIPTION>.sql \
29
- where <VERSION> is a number and <DESCRIPTION> is a short string.") ;
29
+ where <VERSION> is a number and <DESCRIPTION> is a short string.", migrations_dir . display ( ) ) ;
30
30
return Ok ( ( ) ) ;
31
31
}
32
32
log:: info!( "Found {} migrations:" , migrator. migrations. len( ) ) ;
You can’t perform that action at this time.
0 commit comments