### Is there an existing issue for the same feature request? - [X] I have checked the existing issues. ### Is your feature request related to a problem? ```Markdown ALTER TABLE tbl_name [alter_option [, alter_option] ...] alter_option: { table_options | ADD [COLUMN] col_name column_definition [FIRST | AFTER col_name] | ADD [COLUMN] (col_name column_definition,...) | ADD {[INDEX | KEY] [index_name] [index_option] ... | ADD [CONSTRAINT] UNIQUE [INDEX | KEY] [index_name][index_option] ... | ADD [CONSTRAINT] FOREIGN KEY [index_name] (col_name,...) reference_definition | ADD [CONSTRAINT [symbol]] PRIMARY KEY [index_type] (key_part,...) | Moidfy [COLUMN] old_col_name column_definition [FIRST | AFTER col_name] | ALTER INDEX index_name {VISIBLE | INVISIBLE} | DROP [COLUMN] col_name | DROP {INDEX | KEY} index_name | DROP FOREIGN KEY fk_symbol | DROP PRIMARY KEY | RENAME [TO | AS] new_tbl_name | CHANGE [COLUMN] old_col_name new_col_name column_definition [FIRST | AFTER col_name] } key_part: {col_name [(length)] | (expr)} [ASC | DESC] index_option: { COMMENT[=]'string' } table_options: table_option [[,] table_option] ... table_option: { COMMENT [=] 'string' } ``` ### Describe the feature you'd like 1. Support add/drop primary key 2. Support modify columns ### Describe implementation you've considered _No response_ ### Documentation, Adoption, Use Case, Migration Strategy _No response_ ### Additional information _No response_
Activity
dengn commentedon Jul 6, 2023
Please ensure customer test case will work: https://github.com/matrixorigin/MO-Cloud/issues/608
daviszhen commentedon Jul 22, 2023
domingozhang commentedon Aug 1, 2023
alter table with partitions and multi layers foreign key are not supported
lacrimosaprinz commentedon Aug 2, 2023
doc edited:
matrixorigin/matrixorigin.io#484
matrixorigin/matrixorigin.io.cn#637
Ariznawlll commentedon Aug 19, 2023
alter table modify column
alter table change column
alter table rename column
alter table add/drop primary key
test done!