[R2] Fix specialty typo and add migration to rename it on database

This commit is contained in:
Mirna Gama 2024-01-04 16:57:23 -03:00 committed by Mirna Gama
parent 58318525b8
commit 2d61f0c049
2 changed files with 2 additions and 1 deletions

View File

@ -145,7 +145,7 @@ public class Doctor {
/**
* Returns the specialty
* @return An enum class representing the doctor's specialty.
* @see Speciality
* @see Specialty
*/
public Specialty getSpecialty() {
return specialty;

View File

@ -0,0 +1 @@
ALTER TABLE doctors RENAME COLUMN speciality TO specialty;