message: Copying regular constraint in the Copy() method. Using Copy() in the AlterEntry.
diff: @@ -117,18 +117,9 @@ unique_ptr<CatalogEntry> TableCatalogEntry::AlterEntry(ClientContext &context, A
  }
  case AlterTableType::RENAME_TABLE: {
  auto rename_info = (RenameTableInfo *)table_info;
  - auto create_info = make_unique<CreateTableInfo>(schema->name, rename_info->new_table_name);
  -
  - for (idx_t i = 0; i < columns.size(); i++) {
  - ColumnDefinition copy(columns[i].name, columns[i].type);
  - copy.oid = columns[i].oid;
  - copy.default_value = columns[i].default_value ? columns[i].default_value->Copy() : nullptr;
  - create_info->columns.push_back(move(copy));
  - }
  -
  - Binder binder(context);
  - auto bound_create_info = binder.BindCreateInfo(move(create_info));
  - return make_unique<TableCatalogEntry>(catalog, schema, (BoundCreateTableInfo *)bound_create_info.get(), storage);
  + auto copied_table = Copy(context);
  + copied_table->name = rename_info->new_table_name;
  + return copied_table;
  }
  default:
  throw CatalogException("Unrecognized alter table type!");
  @@ -211,6 +202,11 @@ unique_ptr<CatalogEntry> TableCatalogEntry::Copy(ClientContext &context) {
  create_info->columns.push_back(move(copy));
  }
  + for (idx_t i = 0; i < constraints.size(); i++) {
  + auto constraint = constraints[i]->Copy();
  + create_info->constraints.push_back(move(constraint));
  + }
  +
  Binder binder(context);
  auto bound_create_info = binder.BindCreateInfo(move(create_info));
  return make_unique<TableCatalogEntry>(catalog, schema, (BoundCreateTableInfo *)bound_create_info.get(), storage);
  