feat: Media attachment system

This commit is contained in:
Ahmed Bouhuolia
2020-04-23 21:02:17 +02:00
parent 11e3d4c1a9
commit e62ffb5906
8 changed files with 189 additions and 16 deletions

View File

@@ -0,0 +1,12 @@
exports.up = function(knex) {
return knex.schema.createTable('media', (table) => {
table.increments();
table.string('attachment_file');
table.timestamps();
});
};
exports.down = function(knex) {
return knex.schema.dropTableIfExists('media');
};