Skip to content

Commit

Permalink
fix(autok3s): credential table create problem
Browse files Browse the repository at this point in the history
The serve command will failed if autok3s is upgrading from 0.5.2.
The root cause is from sqlite driver and gorm and we can't fix for now.
So we just don't migrate credentials table for now and will have a
better upgrade solution in later version.
  • Loading branch information
orangedeng committed Oct 28, 2022
1 parent 1d890ce commit 80c4f56
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/common/db.go
Expand Up @@ -114,7 +114,10 @@ func InitStorage(ctx context.Context) error {
&ClusterState{},
&Template{},
&Package{},
&Credential{},
// TODO
// Migrate Credential table will cause create table error when upgrading autok3s from 0.5.x
// So we are not migrating this table for now and needs a better upgrade solution in later version.
// &Credential{},
&Explorer{},
&Setting{},
); err != nil {
Expand Down

0 comments on commit 80c4f56

Please sign in to comment.