Garrit Franke
3 years ago
2 changed files with 23 additions and 14 deletions
@ -0,0 +1,13 @@
|
||||
exports.up = function (knex) { |
||||
return knex.schema.createTable("redirects", function (table) { |
||||
table.increments("id").primary().notNullable(); |
||||
table.integer("user_id").references("user.id"); |
||||
table.string("forward_to").notNullable(); |
||||
table.string("alias").notNullable(); |
||||
table.timestamps(true, true); |
||||
}); |
||||
}; |
||||
|
||||
exports.down = function (knex) { |
||||
return knex.schema.dropTable("redirects"); |
||||
}; |
Loading…
Reference in new issue