Fix issues with critical alerts breaking the simulation
This commit is contained in:
@@ -44,7 +44,10 @@ namespace VigilCareClinicalAPI.Migrations
|
||||
table: "patients");
|
||||
|
||||
migrationBuilder.Sql(
|
||||
"ALTER TABLE patients ALTER COLUMN date_of_birth TYPE date USING date_of_birth::date;");
|
||||
"""
|
||||
UPDATE patients SET date_of_birth = '1900-01-01' WHERE date_of_birth !~ '^\d{4}-\d{2}-\d{2}$';
|
||||
ALTER TABLE patients ALTER COLUMN date_of_birth TYPE date USING date_of_birth::date;
|
||||
""");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user