Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nopaque
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Looking for advice? Join the
Matrix channel for GitLab users in Bielefeld
!
Show more breadcrumbs
SFB 1288 - INF
nopaque
Commits
9d3194c1
Commit
9d3194c1
authored
4 years ago
by
Stephan Porada
Browse files
Options
Downloads
Patches
Plain Diff
setting_dark_mode migration
parent
7cfa3bd0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
migrations/versions/66253783654f_.py
+30
-0
30 additions, 0 deletions
migrations/versions/66253783654f_.py
with
30 additions
and
0 deletions
migrations/versions/66253783654f_.py
0 → 100644
+
30
−
0
View file @
9d3194c1
"""
empty message
Revision ID: 66253783654f
Revises: 7378391345fa
Create Date: 2020-04-27 08:26:19.772088
"""
from
alembic
import
op
import
sqlalchemy
as
sa
# revision identifiers, used by Alembic.
revision
=
'
66253783654f
'
down_revision
=
'
7378391345fa
'
branch_labels
=
None
depends_on
=
None
def
upgrade
():
# ### commands auto generated by Alembic - please adjust! ###
op
.
add_column
(
'
users
'
,
sa
.
Column
(
'
setting_dark_mode
'
,
sa
.
Boolean
(),
nullable
=
True
))
op
.
drop_column
(
'
users
'
,
'
is_dark
'
)
# ### end Alembic commands ###
def
downgrade
():
# ### commands auto generated by Alembic - please adjust! ###
op
.
add_column
(
'
users
'
,
sa
.
Column
(
'
is_dark
'
,
sa
.
BOOLEAN
(),
autoincrement
=
False
,
nullable
=
True
))
op
.
drop_column
(
'
users
'
,
'
setting_dark_mode
'
)
# ### end Alembic commands ###
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