From a9d523c20e11dfb4e4c50f9dad091e154cb40c54 Mon Sep 17 00:00:00 2001 From: BK2004 Date: Wed, 30 Oct 2024 16:09:18 -0500 Subject: [PATCH] removed unnecessary notNull --- ..._unknown_mastermind.sql => 0009_colossal_omega_flight.sql} | 0 src/server/db/migrations/meta/0009_snapshot.json | 2 +- src/server/db/migrations/meta/_journal.json | 4 ++-- src/server/db/schema/officers.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename src/server/db/migrations/{0009_unknown_mastermind.sql => 0009_colossal_omega_flight.sql} (100%) diff --git a/src/server/db/migrations/0009_unknown_mastermind.sql b/src/server/db/migrations/0009_colossal_omega_flight.sql similarity index 100% rename from src/server/db/migrations/0009_unknown_mastermind.sql rename to src/server/db/migrations/0009_colossal_omega_flight.sql diff --git a/src/server/db/migrations/meta/0009_snapshot.json b/src/server/db/migrations/meta/0009_snapshot.json index 8337f20..cd81cbe 100644 --- a/src/server/db/migrations/meta/0009_snapshot.json +++ b/src/server/db/migrations/meta/0009_snapshot.json @@ -1,7 +1,7 @@ { "version": "5", "dialect": "pg", - "id": "cc00cb68-4c57-4578-9141-b7fb0fcf8710", + "id": "47b2b0b5-487f-408b-9e3e-1847604c807e", "prevId": "48d235dc-83ee-48ae-bad8-dc3e7093cdd1", "tables": { "admin": { diff --git a/src/server/db/migrations/meta/_journal.json b/src/server/db/migrations/meta/_journal.json index ec8f3e0..371700f 100644 --- a/src/server/db/migrations/meta/_journal.json +++ b/src/server/db/migrations/meta/_journal.json @@ -68,8 +68,8 @@ { "idx": 9, "version": "5", - "when": 1730246133518, - "tag": "0009_unknown_mastermind", + "when": 1730322465532, + "tag": "0009_colossal_omega_flight", "breakpoints": true } ] diff --git a/src/server/db/schema/officers.ts b/src/server/db/schema/officers.ts index 9fab352..594dfb4 100644 --- a/src/server/db/schema/officers.ts +++ b/src/server/db/schema/officers.ts @@ -3,7 +3,7 @@ import { pgTable, text, boolean, uuid } from 'drizzle-orm/pg-core'; import { club } from './club'; export const officers = pgTable('officers', { - id: uuid('id').defaultRandom().notNull().primaryKey(), + id: uuid('id').defaultRandom().primaryKey(), clubId: text('club_id') .notNull() .references(() => club.id),