Run fixer

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
Mark Sagi-Kazar
2020-11-03 20:50:09 +01:00
parent 84ea790885
commit 349832b380
13 changed files with 71 additions and 56 deletions

View File

@@ -82,7 +82,8 @@ type migration struct {
// All SQL flavors share migration strategies.
var migrations = []migration{
{
stmts: []string{`
stmts: []string{
`
create table client (
id text not null primary key,
secret text not null,
@@ -170,7 +171,8 @@ var migrations = []migration{
},
},
{
stmts: []string{`
stmts: []string{
`
alter table refresh_token
add column token text not null default '';`,
`
@@ -182,7 +184,8 @@ var migrations = []migration{
},
},
{
stmts: []string{`
stmts: []string{
`
create table offline_session (
user_id text not null,
conn_id text not null,
@@ -192,7 +195,8 @@ var migrations = []migration{
},
},
{
stmts: []string{`
stmts: []string{
`
create table connector (
id text not null primary key,
type text not null,
@@ -203,7 +207,8 @@ var migrations = []migration{
},
},
{
stmts: []string{`
stmts: []string{
`
alter table auth_code
add column claims_preferred_username text not null default '';`,
`
@@ -215,14 +220,16 @@ var migrations = []migration{
},
},
{
stmts: []string{`
stmts: []string{
`
alter table offline_session
add column connector_data bytea;
`,
},
},
{
stmts: []string{`
stmts: []string{
`
alter table auth_request
modify column state varchar(4096);
`,
@@ -230,7 +237,8 @@ var migrations = []migration{
flavor: &flavorMySQL,
},
{
stmts: []string{`
stmts: []string{
`
create table device_request (
user_code text not null primary key,
device_code text not null,
@@ -251,7 +259,8 @@ var migrations = []migration{
},
},
{
stmts: []string{`
stmts: []string{
`
alter table auth_request
add column code_challenge text not null default '';`,
`