Skip to content

Add ALTER TABLE DROP WITH clause options parsing support#43

Merged
kyleconroy merged 1 commit intomainfrom
claude/fix-next-test-Aw7oI
Dec 23, 2025
Merged

Add ALTER TABLE DROP WITH clause options parsing support#43
kyleconroy merged 1 commit intomainfrom
claude/fix-next-test-Aw7oI

Conversation

@kyleconroy
Copy link
Copy Markdown
Collaborator

Implement parsing for ALTER TABLE DROP CONSTRAINT/COLUMN statements
with WITH clause options including ONLINE, MOVE TO, and MAXDOP.

  • Add DropClusteredConstraintOption interface and implementations:
    • DropClusteredConstraintStateOption (ONLINE = ON/OFF)
    • DropClusteredConstraintMoveOption (MOVE TO filegroup)
    • DropClusteredConstraintValueOption (MAXDOP = value)
  • Add FileGroupOrPartitionScheme type for MOVE TO targets
  • Update parser to handle WITH (options) after element names
  • Add JSON marshaling for new types
  • Enable AlterTableDropTableElementStatementTests90 tests

Implement parsing for ALTER TABLE DROP CONSTRAINT/COLUMN statements
with WITH clause options including ONLINE, MOVE TO, and MAXDOP.

- Add DropClusteredConstraintOption interface and implementations:
  - DropClusteredConstraintStateOption (ONLINE = ON/OFF)
  - DropClusteredConstraintMoveOption (MOVE TO filegroup)
  - DropClusteredConstraintValueOption (MAXDOP = value)
- Add FileGroupOrPartitionScheme type for MOVE TO targets
- Update parser to handle WITH (options) after element names
- Add JSON marshaling for new types
- Enable AlterTableDropTableElementStatementTests90 tests
@kyleconroy kyleconroy merged commit 18f0d6d into main Dec 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants