From f565bc401945f34866a8affc77bebc7bb338ff8f Mon Sep 17 00:00:00 2001 From: Justin Slowik Date: Thu, 29 Aug 2019 13:52:31 -0400 Subject: [PATCH] Updated migrate to proper alter sql columns --- .gitignore | 1 + storage/sql/migrate.go | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 21ad3ba82f..20d0d22d3f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ bin dist _output .idea +.DS_Store \ No newline at end of file diff --git a/storage/sql/migrate.go b/storage/sql/migrate.go index b9710d94ff..1c15068dc4 100644 --- a/storage/sql/migrate.go +++ b/storage/sql/migrate.go @@ -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, @@ -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, @@ -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 @@ -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 '';`, + }, + }, }