reflex-dev / reflex-examples

A repository full of Reflex example apps.
456 stars 352 forks source link

Masenf/sqlalchemy-v2-compat #179

Closed masenf closed 9 months ago

masenf commented 9 months ago

nullable has to be set on the column.

This is kind of a breaking change, but actually the code was wrong before; sa_column always overrides sqlmodel plumbed kwargs, so the nullable=False outside of the sa.Column was being thrown away (as evidenced by the resulting schema change in local_auth).

sqlmodel now raises an exception when you pass props that will be ignored, and these apps were both doing it wrong