The main aim of “GreenCity” project is to teach people in a playful and challenging way to have an eco-friendly lifestyle. A user can view on the map places that have some eco-initiatives or suggest discounts for being environmentally aware (for instance, coffee shops that give a discount if a customer comes with their own cup). А user can start doing an environment-friendly habit and track their progress with a habit tracker.
MIT License
62
stars
80
forks
source link
Commit with changeset for add new and drop previous user_action table constraint #7231
Fix of habit enrollment by addition of new UniqueConstraint to user_action table in DB including 3 columns: "user_id, achievement_category_id, habit_id " and deleting previous including only 2 columns: "user_id, achievement_category_id", that made not possible to create few rows for different habits in db;
Summary Of Changes :fire:
-created new file with changeset to add and delete constraints in user_action table
-modified db.changelog-master.xml
-modified entity UserAction to include habit-id column to UniqueConstraint
PR Checklist Forms
(to be filled out by PR submitter)
[x] Code is up-to-date with the dev branch.
[x] You've successfully built and run the tests locally.
[x] There are new or updated unit tests validating the change.
[x] JIRA/ Github Issue number & title in PR title (ISSUE-XXXX: Ticket title)
[x] This template filled (above this section).
[ ] Sonar's report does not contain bugs, vulnerabilities, security issues, code smells or duplication
[x] NEED_REVIEW and READY_FOR_REVIEW labels are added.
[x] All files reviewed before sending to reviewers
GreenCity PR
Fix of habit enrollment by addition of new UniqueConstraint to user_action table in DB including 3 columns: "user_id, achievement_category_id, habit_id " and deleting previous including only 2 columns: "user_id, achievement_category_id", that made not possible to create few rows for different habits in db;
Summary Of Changes :fire:
-created new file with changeset to add and delete constraints in user_action table -modified db.changelog-master.xml -modified entity UserAction to include habit-id column to UniqueConstraint
PR Checklist Forms
(to be filled out by PR submitter)
dev
branch.NEED_REVIEW
andREADY_FOR_REVIEW
labels are added.