Skip to content

Commit

Permalink
[hotfix] do not use citext as exposed can't cope with it
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasForst committed Mar 14, 2021
1 parent e2d0b5f commit e35ce01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ object Patient : Table("patients") {
val lastName = varchar("last_name", DatabaseTypeLength.DEFAULT_STRING)
val personalNumber = varchar("personal_number", DatabaseTypeLength.PERSONAL_NUMBER)
val phoneNumber = varchar("phone_number", DatabaseTypeLength.PHONE_NUMBER)
val email = text("email", "citext")
val email = varchar("email", DatabaseTypeLength.DEFAULT_STRING)
val insuranceCompany = enumerationByName("insurance_company", DatabaseTypeLength.INSURANCE_COMPANY, InsuranceCompany::class)
val remoteHost = varchar("remote_host", DatabaseTypeLength.REMOTE_HOST)
val registrationEmailSent = timestamp("email_sent_date").nullable()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ CREATE TABLE patients
last_name VARCHAR(256) NOT NULL,
personal_number VARCHAR(11) UNIQUE NOT NULL,
phone_number VARCHAR(13) NOT NULL,
email citext NOT NULL,
email VARCHAR(256) NOT NULL,
insurance_company VARCHAR(4) NOT NULL,
remote_host VARCHAR(45) NOT NULL,
email_sent_date timestamptz,
Expand Down

0 comments on commit e35ce01

Please sign in to comment.