Skip to content

Commit

Permalink
Use existing enum for new column
Browse files Browse the repository at this point in the history
  • Loading branch information
marksparkza committed Apr 3, 2024
1 parent 13c90de commit afe6d57
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def upgrade():
sa.Column('timestamp', sa.TIMESTAMP(timezone=True), nullable=False),
sa.Column('provider_id', sa.String(), nullable=False),
sa.Column('schema_id', sa.String(), nullable=False),
sa.Column('schema_type', sa.Enum('metadata', 'tag', 'vocabulary', name='schematype'), nullable=False),
sa.Column('schema_type', postgresql.ENUM(name='schematype', create_type=False), nullable=False),
sa.CheckConstraint("schema_type = 'metadata'", name='package_schema_type_check'),
sa.ForeignKeyConstraint(['provider_id'], ['provider.id'], ondelete='RESTRICT'),
sa.ForeignKeyConstraint(['schema_id', 'schema_type'], ['schema.id', 'schema.type'], name='package_schema_fkey',
Expand Down

0 comments on commit afe6d57

Please sign in to comment.