diff --git a/persist/src/main/resources/db/migration/14.0.0~alpha.1/V14.0.0.20190813__point_coordinates_cannot_be_null.sql b/persist/src/main/resources/db/migration/14.0.0~alpha.1/V14.0.0.20190813__point_coordinates_cannot_be_null.sql new file mode 100644 index 0000000000000000000000000000000000000000..e1be8cf290e42d3fc598b98f01c763b037478b74 --- /dev/null +++ b/persist/src/main/resources/db/migration/14.0.0~alpha.1/V14.0.0.20190813__point_coordinates_cannot_be_null.sql @@ -0,0 +1,3 @@ +-- just in case if any point on the map has null coordinates (it should never happen) +update point_table set point_val = "0.0,0.0" where point_val = null; +alter table point_table alter column point_val set not null; \ No newline at end of file