Fixes #3015 - increase size of state field in suppliers
This commit is contained in:
parent
32c5a258a7
commit
ae66bba0f1
2 changed files with 32 additions and 1 deletions
|
@ -18,7 +18,7 @@ class Supplier extends SnipeModel
|
||||||
'address' => 'min:3|max:50',
|
'address' => 'min:3|max:50',
|
||||||
'address2' => 'min:2|max:50',
|
'address2' => 'min:2|max:50',
|
||||||
'city' => 'min:3|max:255',
|
'city' => 'min:3|max:255',
|
||||||
'state' => 'min:0|max:2',
|
'state' => 'min:0|max:32',
|
||||||
'country' => 'min:0|max:2',
|
'country' => 'min:0|max:2',
|
||||||
'fax' => 'min:7|max:20',
|
'fax' => 'min:7|max:20',
|
||||||
'phone' => 'min:7|max:20',
|
'phone' => 'min:7|max:20',
|
||||||
|
|
|
@ -0,0 +1,31 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
|
||||||
|
class IncreaseSizeOfStateInSuppliers extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::table('suppliers', function ($table) {
|
||||||
|
$table->string('state', 32)->nullable()->default(null)->change();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::table('suppliers', function ($table) {
|
||||||
|
$table->string('state', 2)->nullable()->default(null)->change();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue