cviebrock / sequel-pro-laravel-export

A Sequel Pro / Sequel Ace bundle to generate Laravel migration files from existing tables.
MIT License
921 stars 55 forks source link

Increments is unsigned by default #6

Closed tomcoonen closed 7 years ago

tomcoonen commented 7 years ago

From a field with this create syntax:

CREATE TABLE `imports` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

This migration is created:

$table->unsignedIncrements('id');

Which should be:

$table->increments('id');