Kruhlmann/gatekeeper

View on GitHub
migrations/1577682079326_completed-flag.js

Summary

Maintainability
A
0 mins
Test Coverage
/* eslint-disable camelcase */

exports.shorthands = undefined;

exports.up = (pgm) => {
    pgm.addColumns("captchas", {
        completed: {
            type: "boolean",
            default: false,
            notNull: true,
        }
    });
};

exports.down = (pgm) => {
    pgm.dropColumns("captchas", ["completed"])
};