Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
3pia
VISPA
VISPA web
Commits
3ad87e4f
Commit
3ad87e4f
authored
Jul 13, 2015
by
Fabian-Andree Heidemann
Browse files
Migration of Database wrt extension_database
parent
d9c0896b
Changes
1
Hide whitespace changes
Inline
Side-by-side
vispa/models/alembic/versions/2ab761fba36_extension_database.py
0 → 100644
View file @
3ad87e4f
"""Extension Database
Revision ID: 2ab761fba36
Revises: 17d572bdfd2d
Create Date: 2015-07-13 15:37:11.904666
"""
# revision identifiers, used by Alembic.
revision
=
'2ab761fba36'
down_revision
=
'17d572bdfd2d'
from
alembic
import
op
import
sqlalchemy
as
sa
from
sqlalchemy.dialects
import
mysql
def
upgrade
():
op
.
create_table
(
'extension_database'
,
sa
.
Column
(
'extension_name'
,
sa
.
Unicode
(
length
=
255
),
nullable
=
False
),
sa
.
Column
(
'data'
,
sa
.
Text
(),
nullable
=
True
),
sa
.
Column
(
'timestamp'
,
sa
.
DateTime
(),
nullable
=
False
),
sa
.
PrimaryKeyConstraint
(
'extension_name'
),
)
def
downgrade
():
op
.
drop_table
(
'extension_database'
)
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