PHPackages                             exolnet/laravel-db-upgrade - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. exolnet/laravel-db-upgrade

ActiveLibrary[Database &amp; ORM](/categories/database)

exolnet/laravel-db-upgrade
==========================

Artisan command to migrate an existing production database structure to use Laravel migrations

v1.10.0(1mo ago)01.2kMITPHPPHP ^8.2CI passing

Since Jan 22Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/eXolnet/laravel-db-upgrade)[ Packagist](https://packagist.org/packages/exolnet/laravel-db-upgrade)[ Docs](https://github.com/eXolnet/laravel-db-upgrade)[ RSS](/packages/exolnet-laravel-db-upgrade/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (12)Versions (14)Used By (0)

laravel-db-upgrade
==================

[](#laravel-db-upgrade)

[![Latest Stable Version](https://camo.githubusercontent.com/4a06e1bcc3d319b5998db12e99f4ccf1602d37246ee63c3d5eafae479b3bf996/68747470733a2f2f706f7365722e707567782e6f72672f65586f6c6e65742f6c61726176656c2d64622d757067726164652f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/eXolnet/laravel-db-upgrade)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/bac6653666fbb442601532a05a29722cb646274cfe0249e934c5da107ac5f36c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f65586f6c6e65742f6c61726176656c2d64622d757067726164652f74657374732e796d6c3f6c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/eXolnet/laravel-db-upgrade/actions?query=workflow%3Atests)[![Total Downloads](https://camo.githubusercontent.com/6807fb16fcb986c82342ab62ab7fbd4b7b2697981a1a40aaa6cdb913f75d429c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f65586f6c6e65742f6c61726176656c2d64622d757067726164652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/eXolnet/laravel-db-upgrade)

Artisan command to migrate an existing production database structure to use Laravel migrations

Installation
------------

[](#installation)

Require this package with composer:

```
composer require exolnet/laravel-db-upgrade
```

The package will automatically register its service provider.

Publish the config file to `config/db-upgrade.php` using:

```
php artisan vendor:publish --provider="Exolnet\DbUpgrade\DbUpgradeServiceProvider"
```

Review and update the default configuration according to your use case (see Usage section for more information).

Usage
-----

[](#usage)

1. Create migrations to obtain your current database structure;
2. Configure `last_migration_for_upgrade` to points to the last migration that represent your current database structure;
3. Optionally, you can add migrations to update your old structure;
4. Run the `php artisan db:upgrade` command.

The `db:upgrade` command will perform the following actions:

1. Backup your data;
2. Run your migrations up to the `last_migration_for_upgrade` migration;
3. Restore your data;
4. Run remaining migration.

Testing
-------

[](#testing)

To run the phpUnit tests, please use:

```
composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE OF CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Alexandre D'Eschambeault](https://github.com/xel1045)
- [All Contributors](../../contributors)

License
-------

[](#license)

Copyright © [eXolnet](https://www.exolnet.com). All rights reserved.

This code is licensed under the [MIT license](http://choosealicense.com/licenses/mit/). Please see the [license file](LICENSE) for more information.

###  Health Score

53

—

FairBetter than 96% of packages

Maintenance90

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 91% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~230 days

Recently: every ~289 days

Total

11

Last Release

45d ago

PHP version history (5 changes)v1.0.0PHP ^7.2

v1.3.0PHP ^7.3|^8.0

v1.5.0PHP ^8.0

v1.7.0PHP ^8.1

v1.8.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4064055?v=4)[eXolnet](/maintainers/exolnet)[@eXolnet](https://github.com/eXolnet)

![](https://www.gravatar.com/avatar/c62099358d9b958053df82fe29782cf298c6361d07546fd4df409c85ef63b217?d=identicon)[xel1045](/maintainers/xel1045)

---

Top Contributors

[![xel1045](https://avatars.githubusercontent.com/u/1497697?v=4)](https://github.com/xel1045 "xel1045 (81 commits)")[![ChristopheTremblay](https://avatars.githubusercontent.com/u/61481239?v=4)](https://github.com/ChristopheTremblay "ChristopheTremblay (3 commits)")[![Gandhi11](https://avatars.githubusercontent.com/u/4001049?v=4)](https://github.com/Gandhi11 "Gandhi11 (2 commits)")[![rmenu-pro](https://avatars.githubusercontent.com/u/198626329?v=4)](https://github.com/rmenu-pro "rmenu-pro (2 commits)")[![clablancherie-exo](https://avatars.githubusercontent.com/u/214526504?v=4)](https://github.com/clablancherie-exo "clablancherie-exo (1 commits)")

---

Tags

database-upgradehacktoberfestlaravellaravel-packagephplaravelexolnetlaravel-db-upgrade

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/exolnet-laravel-db-upgrade/health.svg)

```
[![Health](https://phpackages.com/badges/exolnet-laravel-db-upgrade/health.svg)](https://phpackages.com/packages/exolnet-laravel-db-upgrade)
```

###  Alternatives

[spatie/laravel-medialibrary

Associate files with Eloquent models

6.1k41.3M600](/packages/spatie-laravel-medialibrary)[laravel/ai

The official AI SDK for Laravel.

9782.1M162](/packages/laravel-ai)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8385.5M96](/packages/laravel-doctrine-orm)[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M153](/packages/spatie-laravel-health)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

438834.4k1](/packages/clickbar-laravel-magellan)[itpathsolutions/dbstan

Database Standardization and Analysis Tool for Laravel

442.1k](/packages/itpathsolutions-dbstan)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
