import * as knex from 'knex' ; export async function pre_migration ( tx , dbInfoTableName ) { await createAuthDbInfoTableIfNotExists ( tx , dbInfoTableName ) ; } function createAuthDbInfoTableIfNotExists ( db , dbInfoTableName ) { return db . raw ( `
    CREATE TABLE IF NOT EXISTS ${ dbInfoTableName } (
      name VARCHAR(60) PRIMARY KEY NOT NULL,
      value VARCHAR(191) NOT NULL
    ) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
  ` ) ; }