mrnodebot
Version:
Your Friendly NodeJS IRC Bot
17 lines (15 loc) • 658 B
JavaScript
exports.up = function (knex, Promise) {
return knex.schema.createTable('logging', (table) => {
table.collate('utf8mb4_unicode_ci');
table.increments('id').primary();
table.string('to').collate('utf8mb4_unicode_ci');
table.string('from').collate('utf8mb4_unicode_ci');
table.string('text').collate('utf8mb4_unicode_ci');
table.string('host').collate('utf8mb4_unicode_ci');
table.string('ident').collate('utf8mb4_unicode_ci');
table.timestamp('timestamp').defaultTo(knex.fn.now());
});
};
exports.down = function (knex, Promise) {
return knex.schema.dropTableIfExists('logging');
};