DASSL / ClassDB

An open-source system to let students experiment with relational data
https://dassl.github.io/ClassDB/
Other
7 stars 2 forks source link

Guard uses of ADD COLUMN IF NOT EXISTS; changed in pg9.6 (N) #259

Closed KevinKelly25 closed 6 years ago

KevinKelly25 commented 6 years ago

In PostgreSQL 9.6 added the functionality of IF NOT EXISTS to the ADD COLUMN option of ALTER TABLE. Versions prior to 9.6 will fail the syntax check in addUserMgmtCore.sql because of the use of IF NOT EXISTS on the ALTER TABLE statements.

All uses of ADD COLUMN IF NOT EXISTS should be guarded prior to PostgreSQL version 9.6.

ADD COLUMN IF NOT EXISTS is presently only being used in addUserMgmtCore.sql.