Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lisätään generated-sarake hakemuksen ykkösyksikölle #5623

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions service/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ flyway.password=flyway
# Runtime properties passed to schema migrations (to avoid hardcoded role names)
flyway.placeholders.application_user=evaka_application_local
flyway.placeholders.migration_user=evaka_migration_local
flyway.cleanDisabled=false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Miksi tämä on vaihdettu? Flywayn dokumentaation mukaan tämän asettaminen falseksi tuotantoympäristössä voi olla "career limiting move"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gradle.properties vaikuttaa vain gradlen flyway-plugariin, eikä tiedostoa edes ole docker-kontissa missä tuotantoympäristöissä ajetaan Flyway osana sovelluksen käynnistystä


# URL for main DB
flyway.url=jdbc:postgresql://localhost:5432/evaka_local
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ALTER TABLE application ADD COLUMN primary_preferred_unit uuid
GENERATED ALWAYS AS ((document -> 'apply' -> 'preferredUnits' ->> 0)::uuid) STORED
CONSTRAINT fk$primary_preferred_unit REFERENCES daycare (id);

CREATE INDEX idx$application_primary_unit_status ON application (primary_preferred_unit);
1 change: 1 addition & 0 deletions service/src/main/resources/migrations.txt
Original file line number Diff line number Diff line change
Expand Up @@ -429,3 +429,4 @@ V429__placement_created_updated_not_null.sql
V430__child_attendance_timestamps.sql
V431__child_attendance_range_index.sql
V432__document_template_placement_types.sql
V433__application_primary_preferred_unit.sql
Loading