Skip to content
This repository has been archived by the owner on Feb 21, 2021. It is now read-only.

Refreshes the schema (by re-running your migrations) without loosing the data within SQLite databases.

License

Notifications You must be signed in to change notification settings

boxed-code/laravel-schema-refresh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Schema Refresh

Supports SQLite databases only for the moment

This package will allow you to re-run all of your migrations without loosing all of your data.

The php artisan db:refresh command will:

  • backup the current database
  • create a new database
  • run all of the migrations
  • copy the data from the old database to new

Caveats

If you make breaking changes to your schema, for instance add a new column to a table without a default value, the refresh will fail for the obvious reasons.

Installation

Install via composer:

composer require boxed-code/laravel-schema-refresh 

Misc

Pull requests welcome 😀. License MIT.

About

Refreshes the schema (by re-running your migrations) without loosing the data within SQLite databases.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages