Skip to content

Commit

Permalink
Make houseId not-null everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
kronosapiens committed Jun 16, 2024
1 parent 9722190 commit a2bfb92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion migrations/20200329100520_ChoreValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ exports.up = function(knex, Promise) {
return knex.schema.createTable('ChoreValue', function(t) {
t.increments('id').unsigned().primary();
t.timestamps(useTimestamps = true, defaultToNow = true, useCamelCase = true);
t.string('houseId').references('House.slackId');
t.string('houseId').references('House.slackId').notNull();
t.integer('choreId').references('Chore.id').notNull();
t.timestamp('valuedAt').notNull();
t.float('value').notNull();
Expand Down
2 changes: 1 addition & 1 deletion migrations/20200329100530_ChoreClaim.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ exports.up = function(knex, Promise) {
return knex.schema.createTable('ChoreClaim', function(t) {
t.increments('id').unsigned().primary();
t.timestamps(useTimestamps = true, defaultToNow = true, useCamelCase = true);
t.string('houseId').references('House.slackId');
t.string('houseId').references('House.slackId').notNull();;
t.integer('choreId').references('Chore.id');
t.string('claimedBy').references('Resident.slackId');
t.timestamp('claimedAt');
Expand Down

0 comments on commit a2bfb92

Please sign in to comment.