We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I use gorm to operate the click house table which is running in the cluster mode, just like this:
database.db.Table(tableName).Set( "gorm:table_cluster_options", "on cluster hs_ch_cluster").AutoMigrate(&dto.User{})
The autoMigrate function is not working if we add new columns. I thought it is because the cluster clause is missing. The code is here.
The cluster clause is included in creating a table but is not included in adding a column. craeting table adding a column
And it seems that the issue exists for adding column, dropping column, and altering column
The text was updated successfully, but these errors were encountered:
I raised a PR here to fix this issue.
#117
Sorry, something went wrong.
@jinzhu please help to review and merge
jinzhu
No branches or pull requests
Description
When I use gorm to operate the click house table which is running in the cluster mode, just like this:
database.db.Table(tableName).Set( "gorm:table_cluster_options", "on cluster hs_ch_cluster").AutoMigrate(&dto.User{})
The autoMigrate function is not working if we add new columns. I thought it is because the cluster clause is missing. The code is here.
The cluster clause is included in creating a table but is not included in adding a column.
craeting table
adding a column
And it seems that the issue exists for adding column, dropping column, and altering column
The text was updated successfully, but these errors were encountered: