ita-social-projects / GreenCity

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

Closed HelenSotnik closed 2 weeks ago

HelenSotnik commented 2 weeks ago

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)

sonarcloud[bot] commented 2 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud