Closed bilaschandra closed 1 year ago
It looks like all migrations of VaahCMS are not published or migrated, it may happen because of some file permissions, I guess. You can try the manual method to install VaahCMS, please refer:
https://docs.vaah.dev/vaahcms/installation.html#manual-download-installation
Or Publish all the migration using following command:
php artisan vendor:publish --provider="WebReinvent\VaahCms\VaahCmsServiceProvider" --tag=migrations --force
And then follow the process at http://127.0.0.1:8000/backend#/install/migrate
@bilaschandra Is there anything else we can help you with?
I ran the command but still, I am getting the same error. Here is the screenshot.
/var/www/html $ php artisan vendor:publish --provider="WebReinvent\VaahCms\VaahCmsServiceProvider" --tag=migrations --force
Copied Directory [/vendor/webreinvent/vaahcms/Database/Migrations] To [/database/migrations]
Publishing complete.
@bilaschandra can you share the screenshot of your database/migrations
folder?
@bilaschandra can you share the screenshot of your
database/migrations
folder?
@bilaschandra that is the problem, I don't know the reason in your case, but you run
php artisan vendor:publish --provider="WebReinvent\VaahCms\VaahCmsServiceProvider" --tag=migrations --force
it should move all the migrations from /vendor/webreinvent/vaahcms/Database/Migrations
folder to /database/migrations
.
You should check your folder permissions or manually copy or move all the migrations from /vendor/webreinvent/vaahcms/Database/Migrations
folder to /database/migrations
.
/database/migrations
folder should have all the migration listed at: https://github.com/webreinvent/vaahcms/tree/1.x/Database/Migrations
Thanks @themodernpk . Manually, I have moved all the migrations from /vendor/webreinvent/vaahcms/Database/Migrations folder to /database/migrations. Now it is working.
@bilaschandra thanks for the confirmation, closing the issue.
I am getting the bellow error at the time of migration run from the command line and frontend http://127.0.0.1:8000/backend#/install/migrate. Both cases are getting the same error. How can I run the migration script?
PHP 8.1.14 MySQL 8.0.23