Lambda-School-Labs/Labs26-StorySquad-BE-TeamB

View on GitHub
data/migrations/20201203165213_add-emojis-columns.js

Summary

Maintainability
A
2 hrs
Test Coverage
exports.up = function(knex) {
    return knex.schema
    .table('Writing', (t) => {
        t.text('Emoji').defaultTo("");
    })
    .table('Drawing', (t) => {
        t.text('Emoji').defaultTo("");
    })
};

exports.down = function(knex) {
    return knex.schema
    .table('Writing', (t) => {
        t.dropColumn('Emoji');
    })
    .table('Drawing', (t) => {
        t.dropColumn('Emoji');
    })
};