Browse Source
remove hard-coded limits for descriptions
remove hard-coded limits for descriptions
addresses issue https://github.com/nafiesl/free-pmo/issues/38pull/42/head
8 changed files with 972 additions and 268 deletions
-
18app/Http/Requests/Jobs/CreateRequest.php
-
16app/Http/Requests/Projects/CreateRequest.php
-
17app/Http/Requests/Tasks/CreateRequest.php
-
3composer.json
-
1086composer.lock
-
32database/migrations/2019_06_10_143715_update_projects_table_remove_char_len_limit_of_description_col.php
-
32database/migrations/2019_06_10_144559_update_jobs_table_remove_char_len_limit_of_description_col.php
-
32database/migrations/2019_06_10_145351_update_tasks_table_remove_char_len_limit_of_description_col.php
1086
composer.lock
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,32 @@ |
|||
<?php |
|||
|
|||
use Illuminate\Database\Migrations\Migration; |
|||
use Illuminate\Database\Schema\Blueprint; |
|||
use Illuminate\Support\Facades\Schema; |
|||
|
|||
class UpdateProjectsTableRemoveCharLenLimitOfDescriptionCol extends Migration |
|||
{ |
|||
/** |
|||
* Run the migrations. |
|||
* |
|||
* @return void |
|||
*/ |
|||
public function up() |
|||
{ |
|||
Schema::table('projects', function (Blueprint $table) { |
|||
$table->text('description')->nullable()->change(); |
|||
}); |
|||
} |
|||
|
|||
/** |
|||
* Reverse the migrations. |
|||
* |
|||
* @return void |
|||
*/ |
|||
public function down() |
|||
{ |
|||
Schema::table('projects', function (Blueprint $table) { |
|||
$table->string('description')->nullable()->change(); |
|||
}); |
|||
} |
|||
} |
|||
@ -0,0 +1,32 @@ |
|||
<?php |
|||
|
|||
use Illuminate\Database\Migrations\Migration; |
|||
use Illuminate\Database\Schema\Blueprint; |
|||
use Illuminate\Support\Facades\Schema; |
|||
|
|||
class UpdateJobsTableRemoveCharLenLimitOfDescriptionCol extends Migration |
|||
{ |
|||
/** |
|||
* Run the migrations. |
|||
* |
|||
* @return void |
|||
*/ |
|||
public function up() |
|||
{ |
|||
Schema::table('jobs', function (Blueprint $table) { |
|||
$table->text('description')->nullable()->change(); |
|||
}); |
|||
} |
|||
|
|||
/** |
|||
* Reverse the migrations. |
|||
* |
|||
* @return void |
|||
*/ |
|||
public function down() |
|||
{ |
|||
Schema::table('jobs', function (Blueprint $table) { |
|||
$table->string('description')->nullable()->change(); |
|||
}); |
|||
} |
|||
} |
|||
@ -0,0 +1,32 @@ |
|||
<?php |
|||
|
|||
use Illuminate\Database\Migrations\Migration; |
|||
use Illuminate\Database\Schema\Blueprint; |
|||
use Illuminate\Support\Facades\Schema; |
|||
|
|||
class UpdateTasksTableRemoveCharLenLimitOfDescriptionCol extends Migration |
|||
{ |
|||
/** |
|||
* Run the migrations. |
|||
* |
|||
* @return void |
|||
*/ |
|||
public function up() |
|||
{ |
|||
Schema::table('tasks', function (Blueprint $table) { |
|||
$table->text('description')->nullable()->change(); |
|||
}); |
|||
} |
|||
|
|||
/** |
|||
* Reverse the migrations. |
|||
* |
|||
* @return void |
|||
*/ |
|||
public function down() |
|||
{ |
|||
Schema::table('tasks', function (Blueprint $table) { |
|||
$table->string('description')->nullable()->change(); |
|||
}); |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue