Open moltar opened 1 year ago
2 things to note here:
{name => 'foo', prefix_length => 100}
instead of the string. If you have opinions on what that should look like, please comment over there, i do hope to merge it soonHey, this is now released in 1.64
As mentioned in the previous comment, you can use this feature by instead of passing foo(100)
, you can pass in { name => 'foo', prefix_length => 100 }
Truth is, the Postgres parser has an escape hatch for when you add parens to a field name, so even though the CORRECT solution to the specific issue here is to use the new interface, we may as well ALSO add in the escape hatch
@rabbiveesh Thank you! 🙇🏼♂️
Related SO question: https://stackoverflow.com/questions/6859955/how-do-you-specify-index-length-when-using-dbixclass
This is from
DBIx::Class::Migration
:What I see that in
deploy/001-auto.sql
it produces invalid SQL:But in
upgrade/001-auto.sql
, it looks valid: