apply 1.hcl
cmpshow users 1.sql

# Change identity generation.
apply 2.hcl
cmpshow users 2.sql

-- 1.hcl --
schema "$db" {}

table "users" {
  schema = schema.$db
  column "name" {
    null = false
    type = int
    identity {
        generated = ALWAYS
        start = 10
        increment = 10
    }
  }
}

-- 1.sql --
                  Table "script_column_identity.users"
 Column |  Type   | Collation | Nullable |           Default
--------+---------+-----------+----------+------------------------------
 name   | integer |           | not null | generated always as identity


-- 2.hcl --
schema "$db" {}

table "users" {
  schema = schema.$db
  column "name" {
    null = false
    type = int
    identity {
        generated = BY_DEFAULT
        start = 10
        increment = 10
    }
  }
}

-- 2.sql --
                    Table "script_column_identity.users"
 Column |  Type   | Collation | Nullable |             Default
--------+---------+-----------+----------+----------------------------------
 name   | integer |           | not null | generated by default as identity