I am using the following ogr2ogr command for putting my shapefiles into PostgreSQL table. This command runs fine.
ogr2ogr.exe -append -lco GEOMETRY_NAME=geom -lco SCHEMA=public -f "PostgreSQL" PG:"host=localhost port=5433 user=postgres dbname=abc123 password=xxxxxx" myshapefile.shp -nln shapetable
Now I want is to add extra field/fields like (countryName=xyz / RoadName= street123/etc) while using the above command when exporting my shapefile to PostgreSQL table.
I was trying to find the answer in another link but it was for adding extra field while exporting GeoJSON into PostgreSQL table.
psql -h localhost -p 5433 -U postgres -d abc123 -c "ALTER TABLE shapetable ADD COLUMN countryName TEXT DEFAULT 'xyz'"