bcgov/common-forms-toolkit

View on GitHub
app/src/db/migrations/20210604111302_022-farmopscreening-form_updates.js

Summary

Maintainability
A
2 hrs
Test Coverage
const PREFIX = require('../../forms/attestations/farmopscreening/constants').PREFIX;

exports.up = function(knex) {
  return Promise.resolve()
    .then(() => knex.schema.alterTable(`${PREFIX}_submission_location`, table => {
      table.text('motelAdditional').nullable().comment('Additional locations');
    }));
};

exports.down = function(knex) {
  return Promise.resolve()
    .then(() => knex.schema.alterTable(`${PREFIX}_submission_location`, table => {
      table.dropColumn('motelAdditional');
    }));
};