diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-12-26 09:46:55 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-12-26 09:46:55 +0100 |
| commit | 0ef7a5e0dc1a156a20ca75c8d75f0a26e814b02d (patch) | |
| tree | bffc7969e44daa916c3751ff7429a3a860f06c4c /migrations | |
| parent | fc37dac763fcc9011121cfad2e91493521ebd0dc (diff) | |
scrubbing design
Diffstat (limited to 'migrations')
| -rw-r--r-- | migrations/20171225172732_setup.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/migrations/20171225172732_setup.js b/migrations/20171225172732_setup.js new file mode 100644 index 0000000..430f778 --- /dev/null +++ b/migrations/20171225172732_setup.js @@ -0,0 +1,15 @@ + +exports.up = function(knex, Promise) { + + return knex.schema.createTable('images', function (table) { + table.increments(); + table.string('url'); + table.string('ip'); + table.timestamps(); + }) + +}; + +exports.down = function(knex, Promise) { + return knex.schema.dropTable('images') +}; |
