Download the PHP package axn/laravel-pk-int-to-bigint without Composer

On this page you can find all versions of the php package axn/laravel-pk-int-to-bigint. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-pk-int-to-bigint

Laravel convert primary keys INT to BIGINT

This package convert DB primary keys and related foreign keys type from INT to BIGINT in a Laravel project.

This is especially useful for old projects that need to be updated.

Indeed, since Laravel 5.8 the ID columns are by default of type BIGINT. If you install new packages that use this new "standard" you will have trouble creating the foreign keys.

As a result, this package will be of great help to you to modernize an old application.

It proceeds in 4 steps:

  1. introspection of the database and verification of the integrity of foreign keys (if an integrity is not respected it stops and indicates it to you)
  2. droping all foreign key constraints on each table
  3. converting INT to BIGINT on primary and foreign key columns on each table
  4. restoring all foreign key constraints on each table

Instalation

Install the package with Composer:

Usage

First create a dump of your database in case there is a problem.

Manualy

If you want to run the command directly:

With migration

Pusblish the migration:

So you can incorporate it into your deployment workflow with:


All versions of laravel-pk-int-to-bigint with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^8.0 || ^9.0 || ^10.0
illuminate/database Version ^8.0 || ^9.0 || ^10.0
doctrine/dbal Version ^3.5 || ^3.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package axn/laravel-pk-int-to-bigint contains the following files

Loading the files please wait ....