Skip to content

Commit

Permalink
Fix migration errors if initial database tables were created manually
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-emilius committed Jul 29, 2024
1 parent bff0dd1 commit 5a92224
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--liquibase formatted sql

--changeset airelawaleria:1
--changeset airelawaleria:1 failOnError:false

CREATE TYPE gender AS ENUM ('FEMALE', 'MALE', 'OTHER', 'PREFER_NOT_TO_SAY');
CREATE CAST (varchar AS gender) WITH INOUT AS IMPLICIT;
Expand Down Expand Up @@ -56,7 +56,7 @@ CREATE TYPE application_status AS ENUM ('NOT_ASSESSED', 'ACCEPTED', 'REJECTED');
CREATE CAST (varchar AS application_status) WITH INOUT AS IMPLICIT;

--changeset airelawaleria:2
CREATE TABLE student
CREATE TABLE IF NOT EXISTS student
(
id uuid PRIMARY KEY,
first_name VARCHAR(100),
Expand All @@ -70,7 +70,7 @@ CREATE TABLE student
);

--changeset airelawaleria:3
CREATE TABLE thesis_advisor
CREATE TABLE IF NOT EXISTS thesis_advisor
(
id uuid NOT NULL,
first_name varchar(255),
Expand All @@ -80,7 +80,7 @@ CREATE TABLE thesis_advisor
);

--changeset airelawaleria:4
CREATE TABLE thesis_application
CREATE TABLE IF NOT EXISTS thesis_application
(
id uuid PRIMARY KEY,
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
Expand Down

0 comments on commit 5a92224

Please sign in to comment.