Error: we don't support params for `sql` default values
I use a specific format for the default value for the primary key for the tables in my PostgreSQL database. In my schema file, this works:
However, if I create a helper function:
and change the default
.default(primaryKey('uom'))
I get
Error: we don't support params for 'sql' default values
.
Is there a way that I can make this work so that I do not need to duplicate the code for each table?
Thanks.1 Reply
@RamonaSteve Try using
sql.raw
instead of sql