You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting max_digits and decimal_places to condecimal these are ignored.
The SQL CREATE TABLE resulting from the previous model city definition results in:
CREATE TABLE city (
id INTEGER AUTO_INCREMENT,
name VARCHAR(150) NOT NULL,
population INTEGER,
latitude NUMERIC NOT NULL,
longitude NUMERIC NOT NULL,
PRIMARY KEY (id)
)
So latitude and longitude are created with default parameters max_digits = 10 and decimal_places = 0.
First Check
Commit to Help
Example Code
Description
When setting
max_digits
anddecimal_places
to condecimal these are ignored.The SQL CREATE TABLE resulting from the previous model
city
definition results in:So latitude and longitude are created with default parameters max_digits = 10 and decimal_places = 0.
Operating System
Linux
Operating System Details
Ubuntu 18.04
SQLModel Version
0.0.4
Python Version
3.7.11
Additional Context
This is my requirements.txt:
fastapi==0.68.1
uvicorn==0.15.0
python-multipart==0.0.5
pydantic==1.8.2
pymysql==1.0.2
python-jose[cryptography]
passlib
starlette-json
bcrypt
sqlmodel==0.0.4
The text was updated successfully, but these errors were encountered: