Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
zesje
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Works on my machine
zesje
Commits
52174255
Commit
52174255
authored
5 years ago
by
Ruben Young On
Browse files
Options
Downloads
Patches
Plain Diff
Added new migrations
parent
6b6486ea
No related branches found
Branches containing commit
No related tags found
1 merge request
!11
MultipleChoiceOption is a widget, /exams API call now returns checkbox data
Pipeline
#17585
failed
5 years ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
migrations/versions/26f690576109_.py
+34
-0
34 additions, 0 deletions
migrations/versions/26f690576109_.py
migrations/versions/f97aa3c73453_.py
+0
-33
0 additions, 33 deletions
migrations/versions/f97aa3c73453_.py
with
34 additions
and
33 deletions
migrations/versions/
4a27f48d80d8_add_mc_option
.py
→
migrations/versions/
26f690576109_
.py
+
34
−
0
View file @
52174255
"""
empty message
"""
empty message
Revision ID:
4a27f48d80d8
Revision ID:
26f690576109
Revises: 4204f4a83863
Revises: 4204f4a83863
"""
"""
...
@@ -9,7 +9,7 @@ import sqlalchemy as sa
...
@@ -9,7 +9,7 @@ import sqlalchemy as sa
# revision identifiers, used by Alembic.
# revision identifiers, used by Alembic.
revision
=
'
4a27f48d80d8
'
revision
=
'
26f690576109
'
down_revision
=
'
4204f4a83863
'
down_revision
=
'
4204f4a83863
'
branch_labels
=
None
branch_labels
=
None
depends_on
=
None
depends_on
=
None
...
@@ -18,16 +18,13 @@ depends_on = None
...
@@ -18,16 +18,13 @@ depends_on = None
def
upgrade
():
def
upgrade
():
# ### commands auto generated by Alembic - please adjust! ###
# ### commands auto generated by Alembic - please adjust! ###
op
.
create_table
(
'
mc_option
'
,
op
.
create_table
(
'
mc_option
'
,
sa
.
Column
(
'
id
'
,
sa
.
Integer
(),
autoincrement
=
True
,
nullable
=
False
),
sa
.
Column
(
'
id
'
,
sa
.
Integer
(),
autoincrement
=
True
,
nullable
=
False
),
sa
.
Column
(
'
label
'
,
sa
.
String
(),
nullable
=
True
),
sa
.
Column
(
'
label
'
,
sa
.
String
(),
nullable
=
True
),
sa
.
Column
(
'
mc_type
'
,
sa
.
String
(
length
=
20
),
nullable
=
True
),
sa
.
Column
(
'
feedback_id
'
,
sa
.
Integer
(),
nullable
=
True
),
sa
.
Column
(
'
problem_id
'
,
sa
.
Integer
(),
nullable
=
False
),
sa
.
ForeignKeyConstraint
([
'
feedback_id
'
],
[
'
feedback_option.id
'
],
),
sa
.
Column
(
'
feedback_id
'
,
sa
.
Integer
(),
nullable
=
True
),
sa
.
ForeignKeyConstraint
([
'
id
'
],
[
'
widget.id
'
],
),
sa
.
ForeignKeyConstraint
([
'
feedback_id
'
],
[
'
feedback_option.id
'
],
),
sa
.
PrimaryKeyConstraint
(
'
id
'
)
sa
.
ForeignKeyConstraint
([
'
id
'
],
[
'
widget.id
'
],
),
)
sa
.
ForeignKeyConstraint
([
'
problem_id
'
],
[
'
solution.id
'
],
),
sa
.
PrimaryKeyConstraint
(
'
id
'
)
)
# ### end Alembic commands ###
# ### end Alembic commands ###
...
...
This diff is collapsed.
Click to expand it.
migrations/versions/f97aa3c73453_.py
deleted
100644 → 0
+
0
−
33
View file @
6b6486ea
"""
empty message
Revision ID: f97aa3c73453
Revises: 4204f4a83863
"""
from
alembic
import
op
import
sqlalchemy
as
sa
# revision identifiers, used by Alembic.
revision
=
'
f97aa3c73453
'
down_revision
=
'
4204f4a83863
'
branch_labels
=
None
depends_on
=
None
def
upgrade
():
op
.
create_table
(
'
mc_option
'
,
sa
.
Column
(
'
id
'
,
sa
.
Integer
(),
autoincrement
=
True
,
nullable
=
False
),
sa
.
Column
(
'
x
'
,
sa
.
Integer
(),
nullable
=
False
),
sa
.
Column
(
'
y
'
,
sa
.
Integer
(),
nullable
=
False
),
sa
.
Column
(
'
label
'
,
sa
.
String
(),
nullable
=
True
),
sa
.
Column
(
'
problem_id
'
,
sa
.
Integer
(),
nullable
=
False
),
sa
.
Column
(
'
feedback_id
'
,
sa
.
Integer
(),
nullable
=
True
),
sa
.
ForeignKeyConstraint
([
'
feedback_id
'
],
[
'
feedback_option.id
'
],
),
sa
.
ForeignKeyConstraint
([
'
problem_id
'
],
[
'
solution.id
'
],
),
sa
.
PrimaryKeyConstraint
(
'
id
'
)
)
def
downgrade
():
op
.
drop_table
(
'
mc_option
'
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment