Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
default value alembic
# Boolean
op.add_column('projects', sa.Column('is_closed', sa.Boolean(), server_default=sa.schema.DefaultClause("0"), nullable=False))
# DateTime
op.add_column('projects_users', sa.Column('created_at', sa.DateTime(), server_default=sa.func.current_timestamp(), nullable=False))
@ArsenePadthai

This comment has been minimized.

Copy link

@ArsenePadthai ArsenePadthai commented Oct 26, 2020

awesome

@defp

This comment has been minimized.

Copy link

@defp defp commented Feb 2, 2021

👏🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment