Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Wolfgang Knopki
Spacedeck-open-SAML
Commits
83928dee
Unverified
Commit
83928dee
authored
Jul 23, 2020
by
yrammos
Committed by
GitHub
Jul 24, 2020
Browse files
Fix #58 ('duplicate column name' on fresh install). (#81)
parent
28f4c5d5
Changes
1
Show whitespace changes
Inline
Side-by-side
models/migrations/02-users-add-api-token.js
View file @
83928dee
...
...
@@ -3,7 +3,7 @@
module
.
exports
=
{
up
:
function
(
migration
,
DataTypes
)
{
return
Promise
.
all
([
migration
.
add
Column
(
'
users
'
,
'
api_token
'
,
migration
.
change
Column
(
'
users
'
,
'
api_token
'
,
{
type
:
DataTypes
.
STRING
}
...
...
@@ -13,7 +13,11 @@ module.exports = {
down
:
function
(
migration
,
DataTypes
)
{
return
Promise
.
all
([
migration
.
removeColumn
(
'
users
'
,
'
api_token
'
)
migration
.
changeColumn
(
'
users
'
,
'
api_token
'
,
{
type
:
Sequelize
.
STRING
}
)
])
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment