Question By
Unsolved

How does table migration/creation work?

solutions

Mar 14th, 2023 07:20 AM

I am not sure if I am missing something. in Database/migrations I had some files that will create tables. And the tables were missing in the database and caused errors on site. I ran this command

php artisan migrate

The result was that no migration or update (something like that)

I manually created the tables to fix the issues with the site but just want to know for future purposes. I hope I provided enough info. Thank you for all the support.

bobbyiliev

Mar 14th, 2023 08:03 AM

Hi there,

The default migrations that come with Wave can be applied initially using php artisan migrate --seed after that, if you create new tables over Voyager you will need to manually create them in production as well or follow some of the suggestions here:

Migrate Voyager changes in dev to production

Alternatively, rather than using the Voyager Table creation UI, you could use the standard Laravel migrations functionality as show here:

Laravel migrations

Let me know if I'm missing anything!

solutions

Mar 14th, 2023 08:16 AM

The tables were actually part of the stripe integration code. The error came up once I turned on stripe cashier in env.