Skip to content

Commit

Permalink
chore: update migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Liendo committed Jul 20, 2024
1 parent d856c3c commit 1351463
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/migrations/20240712151318_user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export async function up(knex: Knex): Promise<void> {
await knex.schema.createTable('users', (table) => {
table
.uuid('id')
.primary()
.unique()
.defaultTo(knex.raw('uuid_generate_v4()'))
.primary();
table.string('first_name').notNullable();
Expand All @@ -18,4 +18,4 @@ export async function up(knex: Knex): Promise<void> {

export async function down(knex: Knex): Promise<void> {
await knex.schema.dropTable('users');
}
}

0 comments on commit 1351463

Please sign in to comment.