Database: Increase shift_size column size
This commit is contained in:
parent
b41a675a35
commit
7d51953b84
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
namespace Engelsystem\Migrations;
|
||||
|
||||
use Engelsystem\Database\Migration\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
/**
|
||||
* To allow for larger key names such as "2XL-G"
|
||||
*/
|
||||
class IncreaseTshirtFieldWidth extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
$this->schema->table('users_personal_data', function (Blueprint $table) {
|
||||
$table->string('shirt_size', 10)->change();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
$this->schema->table('users_personal_data', function (Blueprint $table) {
|
||||
$table->string('shirt_size', 4)->change();
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue