Is possible to add that code or something like that to laravel\Illuminate\Database\Schema\Blueprint to use with migrations?
public function incrementsTiny($column)
{
return $this->unsignedTinyInteger($column, true);
}
public function incrementsSmall($column)
{
return $this->unsignedSmallInteger($column, true);
}
scenario: some temp table that don't grow high and have some useful information or just small table that do not have more than 100 lines and need some rare update (add or just change). But it is possible to add to the framework? Its common to have a lot information, but sometimes sometables dont have a lot of data.
Because for increments just have the option for integer or bigInteger
You can use something like:
$table->tinyInteger('id')->unsigned()->autoIncrement();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With