Skip to content

Commit

Permalink
feat: correct the migration files
Browse files Browse the repository at this point in the history
  • Loading branch information
abouolia committed Jun 4, 2024
1 parent 84dd0fa commit 909a70e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
exports.up = function (knex) {
return knex.schema.createTable('storage', (table) => {
table.increments('id').primary();
table.string('key').notNullable();
table.string('path').notNullable();
table.string('extension').notNullable();
table.integer('expire_in');
table.timestamps();
});
};

exports.down = function (knex) {
return knex.schema.dropTableIfExists('storage');
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
exports.up = function (knex) {
return knex.schema.dropTableIfExists('storage');
};

exports.down = function (knex) {};

0 comments on commit 909a70e

Please sign in to comment.