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
3b735d28
Commit
3b735d28
authored
May 19, 2019
by
mntmn
Browse files
fix migration 01
parent
8ba37a11
Changes
1
Hide whitespace changes
Inline
Side-by-side
models/migrations/01-spaces-delete-cascade.js
View file @
3b735d28
...
...
@@ -2,7 +2,7 @@
module
.
exports
=
{
up
:
function
(
migration
,
DataTypes
)
{
return
[
return
Promise
.
all
(
[
migration
.
changeColumn
(
'
memberships
'
,
'
space_id
'
,
{
type
:
DataTypes
.
STRING
,
...
...
@@ -36,11 +36,11 @@ module.exports = {
onUpdate
:
'
CASCADE
'
}
)
]
]
)
},
down
:
function
(
migration
,
DataTypes
)
{
return
[
return
Promise
.
all
(
[
migration
.
changeColumn
(
'
memberships
'
,
'
space_id
'
,
{
type
:
DataTypes
.
STRING
,
...
...
@@ -52,7 +52,6 @@ module.exports = {
onUpdate
:
'
NO ACTION
'
}
),
,
migration
.
changeColumn
(
'
artifacts
'
,
'
space_id
'
,
{
type
:
DataTypes
.
STRING
,
...
...
@@ -75,6 +74,6 @@ module.exports = {
onUpdate
:
'
NO ACTION
'
}
)
]
]
)
}
}
;
}
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