nostream/migrations/20230126_230000_add_remote_address_to_events_table.js
Ricardo Arturo Cabral Mejía f9c53eeeb8 feat: massive update
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2023-02-02 00:19:26 -05:00

10 lines
244 B
JavaScript

exports.up = function (knex) {
return knex.raw('ALTER TABLE events ADD remote_address inet NULL;')
}
exports.down = function (knex) {
return knex.schema.alterTable('events', function (table) {
table.dropColumn('remote_address')
})
}