mirror of https://github.com/laurent22/joplin.git
Server: Fixed display of latest migration in startup log (#5627)
parent
17cf9b3272
commit
1a90ad326f
|
@ -338,7 +338,7 @@ export function isUniqueConstraintError(error: any): boolean {
|
||||||
|
|
||||||
export async function latestMigration(db: DbConnection): Promise<any> {
|
export async function latestMigration(db: DbConnection): Promise<any> {
|
||||||
try {
|
try {
|
||||||
const result = await db('knex_migrations').select('name').orderBy('id', 'asc').first();
|
const result = await db('knex_migrations').select('name').orderBy('id', 'desc').first();
|
||||||
return result;
|
return result;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// If the database has never been initialized, we return null, so
|
// If the database has never been initialized, we return null, so
|
||||||
|
|
Loading…
Reference in New Issue