Skip to content

Commit e543403

Browse files
committed
Fix migrations + ensure functionality
1 parent 5b54fda commit e543403

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

server/src/main/resources/db/common/V107__create_volunteering_tables.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ CREATE TABLE volunteering_relationship
1616
relationship_id varchar PRIMARY KEY,
1717
member_id varchar REFERENCES member_profile (id),
1818
organization_id varchar REFERENCES volunteering_organization (organization_id),
19-
start_date timestamp,
19+
start_date timestamp NOT NULL,
2020
end_date timestamp,
2121
is_active boolean NOT NULL DEFAULT TRUE
2222
);
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTER TABLE volunteering_relationship
2+
ALTER COLUMN start_date DROP NOT NULL;

0 commit comments

Comments
 (0)