'Invalid or incomplete statement. expected one of the following BITMAPCONTEXTDICRETIORY... SQL linter pycharm

I think i have a problem with my set up on pycharm.

I run this query inside a .sql file (query is working well):

CREATE TABLE "migrations" (
  "filename" VARCHAR(255) PRIMARY KEY NOT NULL,
  "migration_date" TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP
);

But i got linter error from pycharm : enter image description here

I tried to change settings : Settings -> Code style -> SQL -> General -> preview dialect -> PostgreSQL

But i still got the linter error, do you have any idea from what it could come ?

Thank you !



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source