Download the PHP package rockero-cz/laravel-db-updates without Composer
On this page you can find all versions of the php package rockero-cz/laravel-db-updates. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rockero-cz/laravel-db-updates
More information about rockero-cz/laravel-db-updates
Files in rockero-cz/laravel-db-updates
Package laravel-db-updates
Short Description This is my package laravel-db-updates
License MIT
Homepage https://github.com/rockero-cz/laravel-db-updates
Informations about the package laravel-db-updates
Laravel DB Updates
In short, database updates package is used to update or fix your data in database. It works on the same principle as Laravel migrations.
Each DB update
can be run only once across environments.
Installation
Install the package via composer:
Publish and run migrations with:
Generating Updates
Running Updates
Usage Examples
Below you can find some practical examples.
Until now, a post could only have one image, now it can have multiple ones though, so you need to transfer your post image to the separate images
table:
Your production database had some testing data and you finally decided to delete them, so you need to delete all records older than 2023-01-01
:
You have made some refactoring and you also renamed a state name, so you need to rename it in the database:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-db-updates with dependencies
spatie/laravel-package-tools Version ^1.13.0
illuminate/contracts Version ^10.0