Skip to content

Commit

Permalink
Creating migration to neural network state on analysis table
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagocmoreira committed Jun 25, 2019
1 parent dd52487 commit 8bc11c9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions migrations/20190625032209_add_neural_net_state_to_analysis.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
function up (knex) {
return knex.schema.alterTable('analysis', (table) => {
table.string('neural_net_state')
})
}

function down (knex) {
return knex.schema.alterTable('analysis', t => {
t.dropColumn('neural_net_state')
})
}

export {
up,
down
}
1 change: 1 addition & 0 deletions src/type-defs.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ type Analysis {
image_path: String
state: String
manual_state: String
neural_net_state: String
report_id: ID
cable_id: ID
created_at: DateTime
Expand Down

0 comments on commit 8bc11c9

Please sign in to comment.