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

HAI-3338: Add project history table and trigger #918

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

petri-timlin
Copy link
Contributor

Description

Added project history table(=hanke_historia) and trigger for hanke table.
Trigger will add a new row to hanke_historia table when hanke table changes.

Jira Issue:

https://helsinkisolutionoffice.atlassian.net/browse/HAI-3338

Type of change

  • Bug fix
  • New feature
  • Other

Instructions for testing

Run database migration and after that when modifiying or creating "hanke" objects then there will be new rows in the table "hanke_historia".

Checklist:

  • I have written new tests (if applicable)
  • I have ran the tests myself (if applicable)
  • I have made necessary changes to the documentation, link to confluence
    or other location:

Other relevant info

Please describe here if there is e.g. some requirements for this change or
other info that the tester/user needs to know.

Add project history table(=hanke_historia) and trigger for hanke table.
Trigger will add a new row to hanke_historia table when hanke table changes.
Copy link
Contributor

@umeetiusbaar umeetiusbaar left a comment

Choose a reason for hiding this comment

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

Is this how it should be?

3,10,HAI24-10,Teemun testi 17.5.2024,lorem ipsum,Kotikatu 12,2024-05-17,2024-08-31,RAKENTAMINEN,"{VIEMARI,SADEVESI}",,"{YKSITYISHENKILO,YKSITYISHENKILO}",{Yritys Oy},{Alli Asianhoitaja},{konsultti},2025-01-14 06:21:39.696989,"{OMISTAJA,MUU}",UPDATE,2025-01-14 06:21:39.632698,haitaton_user

@petri-timlin
Copy link
Contributor Author

Is this how it should be?

3,10,HAI24-10,Teemun testi 17.5.2024,lorem ipsum,Kotikatu 12,2024-05-17,2024-08-31,RAKENTAMINEN,"{VIEMARI,SADEVESI}",,"{YKSITYISHENKILO,YKSITYISHENKILO}",{Yritys Oy},{Alli Asianhoitaja},{konsultti},2025-01-14 06:21:39.696989,"{OMISTAJA,MUU}",UPDATE,2025-01-14 06:21:39.632698,haitaton_user

Yes, that is looking OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants