feat: add add_if_not_exists to AddColumn (#207)

* feat: add column if not exists

* chore: generate codes

* feat: add if not exists for each col

* chore: gen codes
This commit is contained in:
Yingwen
2025-01-03 23:00:22 +08:00
committed by GitHub
parent 1a580a0854
commit 43ddd8dea6
5 changed files with 364 additions and 218 deletions
+4 -1
View File
@@ -145,7 +145,9 @@ message DropDatabaseExpr {
bool drop_if_exists = 3;
}
message AddColumns { repeated AddColumn add_columns = 1; }
message AddColumns {
repeated AddColumn add_columns = 1;
}
message DropColumns { repeated DropColumn drop_columns = 1; }
@@ -156,6 +158,7 @@ message RenameTable { string new_table_name = 1; }
message AddColumn {
ColumnDef column_def = 1;
AddColumnLocation location = 3;
bool add_if_not_exists = 4;
}
message ModifyColumnType {