python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Why is nullable field required with sqlalchemy
I'm trying to use Alembic's bulk_insert in the migration file to get some data to my database for testing purposes. This is my database creation code:
import sqlalchemy as sa
from alembic import op
d...
lr_optim
Votes: 0
Answers: 1
alembic alter_column with existing primary key constraint
I need to alter the type of a column with alembic. Currently my code looks like this:
with op.batch_alter_table('annotations', schema=None) as batch_op:
batch_op.alter_column('anno_id', e...
Robert Sim
Votes: 0
Answers: 1
CreatedAt mixin (base class) in python SQLModel
I'm using SQLModel and would like to define base class with created_at field to inherit from it in others models.
class CreatedAtMixin(SQLModel):
created_at: datetime = Field(default=datetime.now(...
Nikita
Votes: 0
Answers: 1
flask-migrate/alembic - how to skip a specific sqlalchemy bind
Is there any way to skip a bind using flask db migrate / alembic?
I have two repos which have SQLALCHEMY_BINDS which use a common database, but otherwise the databases are different. In my case member...
Lou K
Votes: 0
Answers: 2