diff options
| author | Guilhem Moulin <guilhem@fripost.org> | 2026-03-07 15:27:51 +0100 |
|---|---|---|
| committer | Guilhem Moulin <guilhem@fripost.org> | 2026-03-07 15:27:51 +0100 |
| commit | baa8667a38a5cc79571da15844d525c665234edc (patch) | |
| tree | 2beef76bd2aaa347a03498453e030ded71eb7672 | |
| parent | 8eeb7370ad1828a17f7893601af3381a6ca72ed1 (diff) | |
schema: Add NOT NULL constraints on some of Lantmäteriet's columns.
| -rw-r--r-- | config.yml | 4 | ||||
| -rw-r--r-- | schema.sql | 8 |
2 files changed, 8 insertions, 4 deletions
@@ -769,10 +769,12 @@ layers: subtype: UUID unique: true #width: 36 + nullable: false comment: Globalt unik identitet för generaliserat objekt - name: skapad type: DateTime tz: local + nullable: false comment: Tidpunkt när objektet ändrades - name: lanskod type: Integer @@ -807,10 +809,12 @@ layers: subtype: UUID unique: true #width: 36 + nullable: false comment: Globalt unik identitet för generaliserat objekt - name: skapad type: DateTime tz: local + nullable: false comment: Tidpunkt när objektet ändrades - name: kommunkod type: Integer @@ -368,8 +368,8 @@ SET default_table_access_method = heap; CREATE TABLE lm_topo250.kommunyta ( ogc_fid bigint NOT NULL, - objektidentitet uuid, - skapad timestamp without time zone, + objektidentitet uuid NOT NULL, + skapad timestamp without time zone NOT NULL, kommunkod smallint NOT NULL, wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL ); @@ -466,8 +466,8 @@ ALTER SEQUENCE lm_topo250.kommunyta_sub_ogc_fid_seq OWNED BY lm_topo250.kommunyt CREATE TABLE lm_topo250.lansyta ( ogc_fid bigint NOT NULL, - objektidentitet uuid, - skapad timestamp without time zone, + objektidentitet uuid NOT NULL, + skapad timestamp without time zone NOT NULL, lanskod smallint NOT NULL, wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL ); |
