PHPackages                             kingga/laravel-migrations - 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. kingga/laravel-migrations

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

kingga/laravel-migrations
=========================

Some classes which help with migrations, e.g. changing the id column from unsigned integer to unsigned big integer along with foreign keys.

1.0.0(6y ago)13MITPHP

Since Jul 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/kingga/laravel-migrations)[ Packagist](https://packagist.org/packages/kingga/laravel-migrations)[ RSS](/packages/kingga-laravel-migrations/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel Migrations
==================

[](#laravel-migrations)

Some classes which help with migrations, e.g. changing the id column from unsigned integer to unsigned big integer along with foreign keys.

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

[](#installation)

1. `composer require kingga/laravel-migrations`
2. ...
3. Profit

Migrations
----------

[](#migrations)

### Change Key Type Migration

[](#change-key-type-migration)

This migration is used when you want to change the type on of data stored in a column but you can't because it is referenced by other foreign key constraints. I came across this problem when trying to update the primary key on my users table from `unsigned integer` to `unsigned big integer`.

#### Usage

[](#usage)

```
