Category: Database, github

The release of Laravel 8 introduced us to many great new features, and I think it is one of the best releases we have ever had! I couldn't wait to delete the migrations from some project where we had hundreds of migration files.

This post assumes that you have some working knowledge of GitHub Actions, their yaml workflow files, and that you know what the schema command does.

- name: Run migration and schema dump run: | php artisan migrate --force php artisan schema:dump --prune env: DB_HOST: 127.0.0.1 DB_PORT: ${{ job.services.mysql.ports }}

I hope this post has inspired you to automate your schema dumps or perhaps try automating some other parts of your release process.

Related Articles