Commit 74ea3b9
authored
Add broader support for MySQL DDL statements (sqlc-dev#675)
* endtoend: Update drop column test
* dolphin: Add test for ALTER TABLE DROP COLUMN
* dolphin: Implement ALTER TABLE MODIFY COLUMN
* dolphin: Implement DROP COLUMN IF NOT EXISTS
* dolphin: Implement ALTER TABLE DROP CONSTRAINT
* endtoend: Combine similar DROP NOT NULL tests
* dolphin: Implement ALTER TABLE RENAME TO
* dolphin: Remove duplicate RENAME TABLE test
* dolphin: Implement ALTER TABLE RENAME COLUMN
* dolphin: Add test for changing column data type
* dolphin: Add test for setting column as not null
* dolphin: Fix failing tests
* dolphin: Skip ALTER TABLE SET SCHEMA
* dolphin: Support table and column comments1 parent 3f40b50 commit 74ea3b9
69 files changed
Lines changed: 591 additions & 36 deletions
File tree
- internal
- codegen/golang
- endtoend/testdata
- ddl_alter_table_column_drop_not_null
- mysql
- go
- postgresql
- go
- ddl_alter_table_drop_column_if_exists
- mysql
- go
- postgresql
- ddl_alter_table_drop_column
- mysql
- go
- postgresql
- go
- ddl_alter_table_drop_constraint/mysql
- go
- ddl_alter_table_drop_not_null/postgresql
- ddl_alter_table_rename_column/mysql
- go
- ddl_alter_table_rename
- mysql
- go
- postgresql
- go
- ddl_alter_table_set_data_type/mysql
- go
- ddl_alter_table_set_not_null/mysql
- go
- ddl_alter_table_set_schema/mysql
- ddl_alter_type_add_value/mysql
- ddl_alter_type_rename_value/mysql
- ddl_comment/mysql
- go
- table_rename/mysql
- engine/dolphin
- sql
- ast
- catalog
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments