Here are some steps for cleaning up the barometers table. I have attached a script that should do everything besides fixing the auto-increment. I sent the script to Nate - I can't run as a non-owner of the table
readingdate- make not null; currently no null values
measuredlevel- make not null; currently no null values
locationid- make not null, currently no null values; ensure match in locations table
Already an index on readingdating and locationid; change to a unique index; two records need to be deleted first (see locationid=9069 and readingdate ='2021-11-04 12:00:00.000')
objectid change to an identity column or serial column- make it auto-generate, currently int4 with no default
Here are some steps for cleaning up the barometers table. I have attached a script that should do everything besides fixing the auto-increment. I sent the script to Nate - I can't run as a non-owner of the table
barometer_structure_updates.txt