core icon indicating copy to clipboard operation
core copied to clipboard

How to migrate database in production?

Open Barbapapazes opened this issue 1 year ago • 1 comments

Hello ! 👋

In the documentation, you talked about the migration in development with 2 recipes page but there is nothing about migrations in production!

Could be great to know how an application using database must be published! Do you recommend to manually add SQL file in the Cloudflare UI or to use the Cloudflare CLI locally or in a custom CD? Thanks!

Barbapapazes avatar Apr 30 '24 20:04 Barbapapazes

So far I actually apply the migration by running the development server with --remote so it automatically apply the migration when starting the server to the production or staging database.

You can also run the SQL query in your database dashboard or on Cloudlare UI as well.

Later I wish to be able to leverage Nitro Tasks with a UI to be able to run those in production with a button.

atinux avatar May 02 '24 14:05 atinux

Database migrations is out!

https://hub.nuxt.com/changelog/database-migrations

atinux avatar Oct 25 '24 23:10 atinux

Database migrations is out!

https://hub.nuxt.com/changelog/database-migrations

Love it! 👌

Barbapapazes avatar Oct 26 '24 08:10 Barbapapazes