Replace type SERIAL by IDENTITY as per best practice.

https://wiki.postgresql.org/wiki/Don%27t_Do_This#Don.27t_use_serial
This commit is contained in:
xbgmsharp
2023-11-19 21:34:20 +01:00
parent fddd3df05e
commit de651ea7ab
3 changed files with 6 additions and 6 deletions

View File

@@ -18,7 +18,7 @@ select current_database();
\c signalk
CREATE TABLE public.ne_10m_geography_marine_polys (
gid serial4 NOT NULL,
gid INT GENERATED ALWAYS AS IDENTITY NOT NULL,
featurecla TEXT NULL,
"name" TEXT NULL,
namealt TEXT NULL,