deer / server /migrations /20200126170641_create-feedbacks.js
linuxrun's picture
Upload 120 files
181e22f verified
Raw History Blame Contribute Delete
336 Bytes
exports.up = async function(knex) {
await knex.schema.createTable('feedbacks', table => {
table.increments();
table.string('contact').comment('手机号或邮箱');
table.text('content', 'mediumtext').comment('留言内容');
});
};
exports.down = async function(knex) {
await knex.schema.dropTable('feedbacks');
};