Commit 856faa9
Feat(mysql): add support for
* Support MySQL's `ALTER INDEX`.
MySQL 8.0 and above [support] altering an existinq index, `x`, using the
syntax, `ALTER TABLE x ALTER INDEX {VISIBLE | INVISIBLE}`. This allows
for the index to become either invisible _or_ visible. No other index
changes are permitted.
This commit adds support for such syntax.
[support]: https://dev.mysql.com/doc/refman/8.0/en/alter-table.html
* Move `None` initialization to `else` branch
* Fix return type hint
* Apply styling change
---------
Co-authored-by: Jo <[email protected]>ALTER INDEX (#4800)1 parent 575c979 commit 856faa9
File tree
4 files changed
+32
-0
lines changed- sqlglot
- dialects
- tests/dialects
4 files changed
+32
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
442 | 447 | | |
443 | 448 | | |
444 | 449 | | |
| |||
693 | 698 | | |
694 | 699 | | |
695 | 700 | | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
696 | 713 | | |
697 | 714 | | |
698 | 715 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1706 | 1706 | | |
1707 | 1707 | | |
1708 | 1708 | | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
1709 | 1714 | | |
1710 | 1715 | | |
1711 | 1716 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3304 | 3304 | | |
3305 | 3305 | | |
3306 | 3306 | | |
| 3307 | + | |
| 3308 | + | |
| 3309 | + | |
| 3310 | + | |
| 3311 | + | |
| 3312 | + | |
| 3313 | + | |
| 3314 | + | |
3307 | 3315 | | |
3308 | 3316 | | |
3309 | 3317 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
153 | 155 | | |
154 | 156 | | |
155 | 157 | | |
| |||
0 commit comments