Replies: 1 comment 9 replies
-
I think the first
So using say Do you copy tables from drift files into raw SQL strings that you run in a migration? I don't really see the advantage of the |
Beta Was this translation helpful? Give feedback.
-
I started using the new
STRICT
table feature from sqlite3.37 and already discovered some potential errors where some columns with unknown data types made it into the database. So this is really good, especially when writing migrations with SQL.We tend to copy/paste the SQL from drift files to migrations and adapt it, here we forget converting from
BOOLEAN
toINTEGER
etc. but now this is prevented.But when making tables
STRICT
in drift files, there are a lot of warnings about unknown types which get converted by Drift into the correct types -BOOLEAN
,DATETIME
,DECIMAL
etc.So maybe it would be helpful to have something similar to the
MAPPED BY
syntax in order to prevent these warning:This would prevent the STRICT warning and can easier be copied to an SQL migration.
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions