createTable = async () => {
  if (!knex) knex = await connect();
  const exists = await knex.schema.hasTable(TABLE);
  if (!exists) {
    try {
      await knex.schema.createTable(TABLE, table => {
        table.bigIncrements('vote_id').notNull();
        table.timestamp('time_cast').notNull();
        table.specificType('candidate', 'CHAR(6) NOT NULL');
        table.specificType('uid', 'VARCHAR(128) NOT NULL');
      });
      logger.info(`Successfully created ${TABLE} table.`);
    } catch (err) {
      const message = `Failed to create ${TABLE} table: ${err}`;
      logger.error(message);
    }
  }
}
Create "votes" table in the Cloud SQL database