Since I need to store geometrical data in one of tables. So in order to be able to store the data I firstly created a normal text column type. Then in a new migration, changed the type like this ALTER TABLE areas ALTER COLUMN geom TYPE geometry(GEOMETRYCOLLECTION); and if I manually inserted the data it worked like a charm, but inserting does not work.
This is the following error I get
aqueduct: PostgreSQLSeverity.error 23502: null value in column "geom" violates not-null constraint Detail: Failing row contains (52822, Sverige, 2, f, null). Table: areas Column: geom although the data is complete and the geometry string is not null, and it should be able to behave as a string when inserting.
Anyone having a clue of how to continue working with this?
Since I need to store geometrical data in one of tables. So in order to be able to store the data I firstly created a normal text column type. Then in a new migration, changed the type like this
ALTER TABLE areas ALTER COLUMN geom TYPE geometry(GEOMETRYCOLLECTION);
and if I manually inserted the data it worked like a charm, but inserting does not work.This is the following error I get
aqueduct: PostgreSQLSeverity.error 23502: null value in column "geom" violates not-null constraint Detail: Failing row contains (52822, Sverige, 2, f, null). Table: areas Column: geom
although the data is complete and the geometry string is not null, and it should be able to behave as a string when inserting.Anyone having a clue of how to continue working with this?