Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardfeng-db committed Mar 11, 2024
1 parent be3e09e commit f0c3b96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions catalog/resource_sql_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,10 +440,10 @@ func ResourceSqlTable() common.Resource {
for i, oldCol := range oldCols {
oldColMap := oldCol.(map[string]interface{})
newColMap := newCols[i].(map[string]interface{})
println(oldColMap["type_text"])
println(newColMap["type_text"])
println(oldColMap["type"])
println(newColMap["type"])

if oldColMap["type_text"] != newColMap["type_text"] {
if oldColMap["type"] != newColMap["type"] {
println("type diff!")
return fmt.Errorf("changing the 'type' of an existing column is not allowed, please apply twice by dropping and adding a new column")
}
Expand Down

0 comments on commit f0c3b96

Please sign in to comment.