Skip to content

Commit

Permalink
merge reveal migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
promaty committed Nov 10, 2020
1 parent 047a13b commit cdaeb36
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export function up(knex: Knex): Promise<void> {
table.integer('outcome').notNullable()
table.string('salt').notNullable()
table.boolean('revealed').defaultTo(false).notNullable()
table.integer('failedAttempts').notNullable().defaultTo(0)
table.boolean('expired').notNullable().defaultTo(false)
table.dateTime('createdAt').defaultTo(knex.fn.now()).notNullable()
table.dateTime('updatedAt').defaultTo(knex.fn.now()).notNullable()
})
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit cdaeb36

Please sign in to comment.