natedunn
natedunn
DTDrizzle Team
Created by pbochis on 10/19/2023 in #help
drizzle-kit push:mysql drops unchanged primary key & introspect:mysql fails hard
Yeah I didn't have either of those (and verbose just displays what its going to do afaik). I had to downgrade to make this work.
13 replies
DTDrizzle Team
Created by thdxr on 11/10/2023 in #help
Dropping primary keys every time
70 replies
DTDrizzle Team
Created by thdxr on 11/10/2023 in #help
Dropping primary keys every time
oof, this just straight breaks local development unless I drop all tables. this feels pretty critical so if I got time I will file an issue. Update: already one filed:
70 replies
DTDrizzle Team
Created by josefkjaergaard on 6/20/2023 in #help
Ordering by relation in relational query
it does work. worth noting that I think you might be confusing the tables that you are sorting. in your example country in orderBy is actually your city table. You might want to use orderBy in your with section. Here is an example of the difference. Note how I've named the tables:
columns: {...}
where: {...}
orderBy: (cityTable, { desc }) => desc(cityTable.name)
with: {
country: {
columns: {...}
where: {...}
orderBy: (countryTable, { desc }) => desc(countryTable.name)
}
}
columns: {...}
where: {...}
orderBy: (cityTable, { desc }) => desc(cityTable.name)
with: {
country: {
columns: {...}
where: {...}
orderBy: (countryTable, { desc }) => desc(countryTable.name)
}
}
3 replies
DTDrizzle Team
Created by thdxr on 11/10/2023 in #help
Dropping primary keys every time
yeah this is still a bummer, especially since "official" recommendation for planetscale has been to use push.
70 replies