Skip to content

Commit

Permalink
Update 20240728082907_add_member_online_fields.ts
Browse files Browse the repository at this point in the history
Added a defaultTo value to the last_activity column.
  • Loading branch information
SalleeMatthew authored and dburleson committed Aug 12, 2024
1 parent ef21f27 commit b225a3d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export async function up(knex: Knex): Promise<void> {
console.log('Adding member online columns to the member table');
await knex.schema.alterTable('member', table => {
table.integer('place_id').unsigned().defaultTo(null);
table.timestamp('last_activity');
table.timestamp('last_activity').defaultTo(knex.fn.now());
table.integer('is_3d').unsigned().defaultTo(0);
});
}
Expand Down

0 comments on commit b225a3d

Please sign in to comment.