-
-
Save anonymous/dc663b836d3f9f178d16949e5c0b03e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.up = function(knex, Promise) { | |
knex.schema.createTable('images', (table) =>{ | |
table.increments(); | |
table.text('image_title').notNullable(); | |
table.text('image_description'); | |
table.text('image_path').notNullable(); | |
table.boolean('image_is_deleted').defaultTo(false); | |
table.datetime('image_created_at').notNullable(); | |
}); | |
}; | |
exports.down = function(knex, Promise) { | |
return knex.schema.dropTable('images'); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cbravophoto=# \dt | |
List of relations | |
Schema | Name | Type | Owner | |
--------+----------------------+-------+---------- | |
public | knex_migrations | table | AmazeCPK | |
public | knex_migrations_lock | table | AmazeCPK | |
(2 rows) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment