Skip to content

Commit

Permalink
[Feature] using empty string as default for identity column
Browse files Browse the repository at this point in the history
  • Loading branch information
hshahconsulting committed Aug 19, 2024
1 parent d5c036a commit cc08c2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion catalog/resource_sql_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var MaxSqlExecWaitTimeout = 50
type SqlColumnInfo struct {
Name string `json:"name"`
Type string `json:"type_text,omitempty" tf:"alias:type,computed"`
Identity IdentityColumn `json:"identity,omitempty" tf:"default:false"`
Identity IdentityColumn `json:"identity,omitempty"`
Comment string `json:"comment,omitempty"`
Nullable bool `json:"nullable,omitempty" tf:"default:true"`
}
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/sql_table.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ Currently, changing the column definitions for a table will require dropping and

* `name` - User-visible name of column
* `type` - Column type spec (with metadata) as SQL text. Not supported for `VIEW` table_type.
* `identity` - (Optional) Whether field is an identity column. Can be `default`, `always` or `false`. (Default: `false`)
* `identity` - (Optional) Whether field is an identity column. Can be `default`, `always` or ``. (Default: ``)
* `comment` - (Optional) User-supplied free-form text.
* `nullable` - (Optional) Whether field is nullable (Default: `true`)

Expand Down

0 comments on commit cc08c2e

Please sign in to comment.