Skip to content

Inconsistent indentation in ALTER TABLE statements #131

Open

Description

@Huliiiiii

Output:

ALTER TABLE "public"."foo_table"
  DROP COLUMN "id",
    ALTER COLUMN "role_id"
  SET NOT NULL;

Expect Output:

ALTER TABLE "public"."foo_table"
  DROP COLUMN "id",
  ALTER COLUMN "role_id" SET NOT NULL;

Output:

ALTER TABLE "public"."release_catalog_number"
  ALTER COLUMN "catalog_number"
    DROP NOT NULL;

ALTER TABLE
  "public"."release_catalog_number_history"
  ALTER COLUMN "catalog_number"
  DROP NOT NULL;

Expect Output:

ALTER TABLE "public"."release_catalog_number"
  ALTER COLUMN "catalog_number" DROP NOT NULL;

ALTER TABLE "public"."release_catalog_number_history"
  ALTER COLUMN "catalog_number" DROP NOT NULL;

Config:

"dialect": "postgresql",
"linesBetweenQueries": 2,
"uppercase": true,
"maxInlineTopLevel": 80

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingkilo-auto-fixAuto-generated label by Kilokilo-triagedAuto-generated label by Kilo

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions