I have the next SQL cmd that postgress says it is not correct:
SQL State : 42601
Error Code : 0
Message : ERROR: syntax error at or near "NOT"
Position: 41
Location : db/migration/postgresql/V2.5.0.20180730192730__schema-add-kerberos-to-source.sql (/opt/tomcat/webapps/WebAPI/WEB-INF/classes/db/migration/postgresql/V2.5.0.20180730192730__schema-add-kerberos-to-source.sql)
Line : 1
Statement : ALTER TABLE webapi.source ADD COLUMN IF NOT EXISTS krb_auth_method VARCHAR DEFAULT 'PASSWORD' NOT NULL
Any ideas why this is wrong? I am using psql 9.5.9
SELECT version();returns the version of the server you are currently connected to.