Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CCU HTM
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Bui3.Minh@live.uwe.ac.uk
CCU HTM
Commits
c5b77f3a
Commit
c5b77f3a
authored
1 month ago
by
muoimeo
Browse files
Options
Downloads
Patches
Plain Diff
rewrite migration
parent
ad3dee4b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
migrations/versions/25fcfa506211_reset_base_after_cleanup.py
+38
-0
38 additions, 0 deletions
migrations/versions/25fcfa506211_reset_base_after_cleanup.py
with
38 additions
and
0 deletions
migrations/versions/25fcfa506211_reset_base_after_cleanup.py
0 → 100644
+
38
−
0
View file @
c5b77f3a
"""
Reset base after cleanup
Revision ID: 25fcfa506211
Revises:
Create Date: 2025-04-22 21:06:34.163685
"""
from
alembic
import
op
import
sqlalchemy
as
sa
from
sqlalchemy.dialects
import
mysql
# revision identifiers, used by Alembic.
revision
=
'
25fcfa506211
'
down_revision
=
None
branch_labels
=
None
depends_on
=
None
def
upgrade
():
# ### commands auto generated by Alembic - please adjust! ###
with
op
.
batch_alter_table
(
'
uploadedfiles
'
,
schema
=
None
)
as
batch_op
:
batch_op
.
alter_column
(
'
error_details
'
,
existing_type
=
mysql
.
LONGTEXT
(
collation
=
'
utf8mb4_unicode_ci
'
),
type_
=
sa
.
Text
(
length
=
16777215
),
existing_nullable
=
True
)
# ### end Alembic commands ###
def
downgrade
():
# ### commands auto generated by Alembic - please adjust! ###
with
op
.
batch_alter_table
(
'
uploadedfiles
'
,
schema
=
None
)
as
batch_op
:
batch_op
.
alter_column
(
'
error_details
'
,
existing_type
=
sa
.
Text
(
length
=
16777215
),
type_
=
mysql
.
LONGTEXT
(
collation
=
'
utf8mb4_unicode_ci
'
),
existing_nullable
=
True
)
# ### 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