fjborquez / aang

0 stars 0 forks source link

Fix HouseRole and HousePerson relationship in migration file #102

Open fjborquez opened 2 months ago

fjborquez commented 2 months ago

As a Developer I want to fix the HouseRole and HousePerson relationship migration So that I can advance with the product development faster and reduce the cycletime

Definition Of Ready (DoR)

Definition Observations
  • - [ ]
Story where the bug was identified or an easy way to reproduce
  • - [ ]
Environment (Dev, Test, prod) Dev
  • - [ ]
Severity (Low, Medium, High) Low

Bug Description

HouseRole is an Enum, so can't be referenced as foreign key in laravel's migrations. That is why a column and foreign key should be created without using normal migrations way.

Steps to Reproduce

  1. Execute migrations file, php artisan migrate
  2. Execute migration rollback, php artisan migrate:rollback

Expected Behavior

Delete the database.

Actual Behavior

A database error.

Impact

This issue has a low impact, because the system can work anyway.