From 6b620f942fe1aa40e99d6c587ce08e2419e62035 Mon Sep 17 00:00:00 2001 From: xwilson03 Date: Tue, 13 Aug 2024 16:59:15 -0500 Subject: [PATCH] fixes schoolID rename --- packages/db/drizzle/0015_orange_garia.sql | 2 +- packages/db/schema.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/db/drizzle/0015_orange_garia.sql b/packages/db/drizzle/0015_orange_garia.sql index 5a3fe90d..d78bda1a 100644 --- a/packages/db/drizzle/0015_orange_garia.sql +++ b/packages/db/drizzle/0015_orange_garia.sql @@ -6,7 +6,7 @@ ALTER TABLE "registration_data" RENAME TO "user_hacker_data"; --> statement-brea -- Rename Columns -ALTER TABLE "user_hacker_data" RENAME COLUMN "short_id" TO "schoolID"; --> statement-breakpoint +ALTER TABLE "user_hacker_data" RENAME COLUMN "short_id" TO "school_id"; --> statement-breakpoint ALTER TABLE "user_hacker_data" RENAME COLUMN "accepted_mlh_code_of_conduct" TO "has_accepted_mlh_coc"; --> statement-breakpoint ALTER TABLE "user_hacker_data" RENAME COLUMN "shared_data_with_mlh" TO "has_shared_data_with_mlh"; --> statement-breakpoint ALTER TABLE "user_hacker_data" RENAME COLUMN "wants_to_receive_mlh_emails" TO "is_emailable"; --> statement-breakpoint diff --git a/packages/db/schema.ts b/packages/db/schema.ts index 7049dbc9..78afdd00 100644 --- a/packages/db/schema.ts +++ b/packages/db/schema.ts @@ -115,7 +115,7 @@ export const userHackerData = pgTable("user_hacker_data", { // data university: varchar("university", { length: 200 }).notNull(), major: varchar("major", { length: 200 }).notNull(), - schoolID: varchar("schoolID", { length: 50 }).notNull(), + schoolID: varchar("school_id", { length: 50 }).notNull(), levelOfStudy: varchar("level_of_study", { length: 50 }).notNull(), hackathonsAttended: integer("hackathons_attended").notNull(), softwareExperience: varchar("software_experience", {