Skip to content

Commit

Permalink
fixes schoolID rename
Browse files Browse the repository at this point in the history
  • Loading branch information
xwilson03 committed Aug 13, 2024
1 parent 5d66688 commit 6b620f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/db/drizzle/0015_orange_garia.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/db/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand Down

0 comments on commit 6b620f9

Please sign in to comment.