Skip to content

Commit

Permalink
Fixing the alter operation table options
Browse files Browse the repository at this point in the history
Signed-off-by: Fawzi Abdulfattah <iifawzie@gmail.com>
  • Loading branch information
iifawzi committed Jan 15, 2023
1 parent e6320e9 commit b4a2e3f
Show file tree
Hide file tree
Showing 3 changed files with 758 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Components/AlterOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ class AlterOperation extends Component
'COLUMN' => 2,
'CONSTRAINT' => 2,
'DEFAULT' => 2,
'TO' => 2,
'BY' => 2,
'FOREIGN' => 2,
'FULLTEXT' => 2,
Expand All @@ -128,9 +127,16 @@ class AlterOperation extends Component
'PRIMARY KEY' => 2,
'SPATIAL' => 2,
'TABLESPACE' => 2,
'INDEX' => 2,
'INDEX' => [
2,
'var',
],

'CHARACTER SET' => 3,
'TO' => [
3,
'var',
],
];

/**
Expand Down
1 change: 1 addition & 0 deletions tests/data/parser/parseAlterTableRenameIndex.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `transactions` RENAME INDEX `fk_transactions_catalog_entries1_idx` TO `fk_transactions_catalog_entries2_idx`
Loading

0 comments on commit b4a2e3f

Please sign in to comment.