Skip to content

Commit

Permalink
Merge pull request #57 from observerly/feature/migrations/alembic
Browse files Browse the repository at this point in the history
feat: Updated Body model (e.g., Star, Galaxy, Nebulae etc.)
  • Loading branch information
michealroberts authored Aug 29, 2022
2 parents 9d3ff76 + f02de27 commit e9d2932
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""feat: Added Body model (e.g., Star, Galaxy, Nebulae etc.)
Revision ID: bd1edfc58cf6
Revision ID: d246e2f4a338
Revises:
Create Date: 2022-04-13 12:40:45.599340
Create Date: 2022-08-29 14:45:24.960549
"""
import sqlalchemy as sa
Expand All @@ -11,7 +11,7 @@
from alembic import op

# revision identifiers, used by Alembic.
revision = "bd1edfc58cf6"
revision = "d246e2f4a338"
down_revision = None
branch_labels = None
depends_on = None
Expand Down Expand Up @@ -106,13 +106,13 @@ def upgrade():
),
sa.Column(
"ngc",
sa.String(length=3),
sa.String(length=12),
nullable=True,
comment="New General Catalogue (NGC) Number",
),
sa.Column(
"ic",
sa.String(length=3),
sa.String(length=12),
nullable=True,
comment="Indexed Catalogue (IC) Number",
),
Expand Down Expand Up @@ -156,4 +156,4 @@ def downgrade():
op.drop_index(op.f("ix_body_constellation"), table_name="body")
op.drop_index(op.f("ix_body_bd"), table_name="body")
op.drop_table("body")
# ### end Alembic commands ###
# ### end Alembic commands ###root@504aaea6537f:/usr/src/app/alembic/versions#
4 changes: 2 additions & 2 deletions app/models/body.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ class Body(Base):
# star clusters and emission nebulae.
ngc = Column(
String(
length=3,
length=12,
convert_unicode=False,
unicode_error=None,
),
Expand All @@ -261,7 +261,7 @@ class Body(Base):
# which remain in widespread use.
ic = Column(
String(
length=3,
length=12,
convert_unicode=False,
unicode_error=None,
),
Expand Down

0 comments on commit e9d2932

Please sign in to comment.