You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
341 B
CoffeeScript
14 lines
341 B
CoffeeScript
10 years ago
|
|
||
|
exports.up = (knex, Promise) ->
|
||
|
knex.schema.createTable "blog_posts", (table) ->
|
||
|
table.bigIncrements("Id")
|
||
|
table.string("Slug")
|
||
|
table.string("Title")
|
||
|
table.text("Body", "longtext")
|
||
|
table.timestamp("Posted").nullable()
|
||
|
table.timestamp("Edited").nullable()
|
||
|
|
||
|
|
||
|
exports.down = (knex, Promise) ->
|
||
|
knex.schema.dropTable "blog_posts"
|