Skip to content

Commit

Permalink
Updated migrate to proper alter sql columns
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-slowik committed Sep 3, 2019
1 parent 78ef63d commit f565bc4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ bin
dist
_output
.idea
.DS_Store
15 changes: 12 additions & 3 deletions storage/sql/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ var migrations = []migration{
claims_email text not null,
claims_email_verified boolean not null,
claims_groups bytea not null, -- JSON array of strings
claims_locale text not null,
connector_id text not null,
connector_data bytea,
Expand All @@ -118,7 +117,6 @@ var migrations = []migration{
claims_email text not null,
claims_email_verified boolean not null,
claims_groups bytea not null, -- JSON array of strings
claims_locale text not null,
connector_id text not null,
connector_data bytea,
Expand All @@ -137,7 +135,6 @@ var migrations = []migration{
claims_email text not null,
claims_email_verified boolean not null,
claims_groups bytea not null, -- JSON array of strings
claims_locale text not null,
connector_id text not null,
connector_data bytea
Expand Down Expand Up @@ -193,4 +190,16 @@ var migrations = []migration{
);`,
},
},
{
stmts: []string{`
alter table auth_request
add column claims_locale text not null default '';`,
`
alter table auth_code
add column claims_locale text not null default '';`,
`
alter table refresh_token
add column claims_locale text not null default '';`,
},
},
}

0 comments on commit f565bc4

Please sign in to comment.