index.js
/**
	 * Run database migrations for the library
	 *
	 * @return {promise} - Resolves when database migrations are done
	 */
Run database migrations for the library
@return {promise} - Resolves when database migrations are done
Run database migrations for the library @return { promise } - Resolves when database migrations are done
async runDbMigrations() {
		const logPrefix = topLogPrefix + 'runDbMigrations() - ';
		this.log.info(logPrefix + 'Running DB migrations');
		const options = {};
		options.dbType = 'mariadb';
		options.dbDriver = this.db;
		options.tableName = 'setting_db_version';
		options.migrationScriptsPath = __dirname + '/dbmigration';
		options.log = this.log;
		const dbMigration = new DbMigration(options);
		await dbMigration.run();
	}
async runDbMigrations ( ) { const logPrefix = topLogPrefix + 'runDbMigrations() - ' ; this . log . info ( logPrefix + 'Running DB migrations' ) ; const options = { } ; options . dbType = 'mariadb' ; options . dbDriver = this . db ; options . tableName = 'setting_db_version' ; options . migrationScriptsPath = __dirname + '/dbmigration' ; options . log = this . log ; const dbMigration = new DbMigration ( options ) ; await dbMigration . run ( ) ; }
Run database migrations for the library
 @return {promise} - Resolves when database migrations are done
Run database migrations for the library @return { promise } - Resolves when database migrations are done