depot / kysely-planetscale

A Kysely dialect for PlanetScale Serverless
https://depot.dev/blog/kysely-dialect-planetscale
MIT License
350 stars 15 forks source link

Sending a migration to planetscale? #13

Closed liamrohan closed 1 year ago

liamrohan commented 1 year ago

Stupid question - how do I push a migration to planetscale? Have followed the Kyesly docs MigrateToLatest() though unable to get this working with the planetscale dialect.

jacobwgillespie commented 1 year ago

Hey! Hopefully you've figured this out, I'm less familiar with using Kysely's migration support, but I believe they would run using the mysql2 dialect. Perhaps this is what you're doing now, or maybe there's a way to use the serverless driver for migrations as well.

XahidEx commented 1 year ago

I'm also having trouble with it :)