Skip to content

Commit

Permalink
fix table alternation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
spikelu2016 committed Nov 7, 2023
1 parent af9aea8 commit 020c3b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/storage/postgresql/postgresql.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (s *Store) CreateKeysTable() error {

func (s *Store) AlterKeysTable() error {
alterTableQuery := `
ALTER TABLE keys ADD COLUMN IF NOT EXISTS setting_id VARCHAR(255) NOT NULL;
ALTER TABLE keys ADD COLUMN IF NOT EXISTS setting_id VARCHAR(255);
`

ctxTimeout, cancel := context.WithTimeout(context.Background(), s.wt)
Expand Down

0 comments on commit 020c3b0

Please sign in to comment.