Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
protokollsystem
proto3
Commits
84977108
Commit
84977108
authored
Jun 17, 2019
by
markus scheller
Browse files
OldTodos for mysql schema
parent
4ce00ba6
Changes
1
Hide whitespace changes
Inline
Side-by-side
migrations-mysql/versions/15e172ac1a28_.py
0 → 100644
View file @
84977108
"""empty message
Revision ID: 15e172ac1a28
Revises: 841fb7253188
Create Date: 2019-06-17 17:58:50.754148
"""
from
alembic
import
op
import
sqlalchemy
as
sa
# revision identifiers, used by Alembic.
revision
=
'15e172ac1a28'
down_revision
=
'841fb7253188'
branch_labels
=
None
depends_on
=
None
def
upgrade
():
# ### commands auto generated by Alembic - please adjust! ###
op
.
create_table
(
'oldtodos'
,
sa
.
Column
(
'id'
,
sa
.
Integer
(),
nullable
=
False
),
sa
.
Column
(
'old_id'
,
sa
.
Integer
(),
nullable
=
True
),
sa
.
Column
(
'who'
,
sa
.
Text
(),
nullable
=
True
),
sa
.
Column
(
'description'
,
sa
.
Text
(),
nullable
=
True
),
sa
.
Column
(
'protocol_key'
,
sa
.
Text
(),
nullable
=
True
),
sa
.
PrimaryKeyConstraint
(
'id'
)
)
# ### end Alembic commands ###
def
downgrade
():
# ### commands auto generated by Alembic - please adjust! ###
op
.
drop_table
(
'oldtodos'
)
# ### end Alembic commands ###
Write
Preview
Supports
Markdown
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