From 6164c3e7d96245e3441e51e2a8bb815d944d2187 Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Fri, 11 Nov 2022 15:01:32 +0100
Subject: [PATCH] Add migration script message and formatting
---
migrations/versions/721829b5dd25_.py | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/migrations/versions/721829b5dd25_.py b/migrations/versions/721829b5dd25_.py
index 124ca07d..d5ba1139 100644
--- a/migrations/versions/721829b5dd25_.py
+++ b/migrations/versions/721829b5dd25_.py
@@ -1,4 +1,4 @@
-"""empty message
+"""Add pipeline_name column to spacy_nlp_pipeline_models table
Revision ID: 721829b5dd25
Revises: 31dd42e5ea6f
@@ -17,12 +17,11 @@ depends_on = None
def upgrade():
- # ### commands auto generated by Alembic - please adjust! ###
- op.add_column('spacy_nlp_pipeline_models', sa.Column('pipeline_name', sa.String(length=64), nullable=True))
- # ### end Alembic commands ###
+ op.add_column(
+ 'spacy_nlp_pipeline_models',
+ sa.Column('pipeline_name', sa.String(length=64), nullable=True)
+ )
def downgrade():
- # ### commands auto generated by Alembic - please adjust! ###
op.drop_column('spacy_nlp_pipeline_models', 'pipeline_name')
- # ### end Alembic commands ###