sql-lint
sql-lint copied to clipboard
ALTER INDEX for Postgres should be valid
An error was raised when encountered ALTER INDEX ..... statement running sql-lint through super-linter
Steps to reproduce
- create some .sql file with ALTER INDEX foo RENAME TO bar;
- run super-liter
Output
[sql-lint: my-sql-invalid-alter-option] Option 'index' is not a valid option, must be one of '["column","online","offline","ignore","database","event","function","procedure","server","table","tablespace","view"]'.
Expected Behavior
No error from linter. ALTER INDEX ... should be valid.