Skip to content

Commit

Permalink
set reasonable limits for better performance and memory usage
Browse files Browse the repository at this point in the history
  • Loading branch information
imanghafoori1 committed Nov 9, 2017
1 parent 6bae61e commit 4a520e4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ public function up()
Schema::create('cms_privileges', function (Blueprint $table) {
$table->increments('id');

$table->string('name')->nullable();
$table->string('name', 50)->nullable();
$table->boolean('is_superadmin')->nullable();
$table->string('theme_color')->nullable();
$table->string('theme_color', 50)->nullable();

$table->timestamps();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function up()
Schema::create('cms_settings', function (Blueprint $table) {
$table->increments('id');

$table->string('name')->nullable();
$table->string('name', 50)->nullable();
$table->text('content')->nullable();
$table->string('content_input_type')->nullable();
$table->string('dataenum')->nullable();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ public function up()
Schema::create('cms_moduls', function (Blueprint $table) {
$table->increments('id');

$table->string('name')->nullable();
$table->string('icon')->nullable();
$table->string('path')->nullable();
$table->string('table_name')->nullable();
$table->string('controller')->nullable();
$table->string('name', 50)->nullable();
$table->string('icon', 50)->nullable();
$table->string('path', 50)->nullable();
$table->string('table_name', 50)->nullable();
$table->string('controller', 50)->nullable();
$table->boolean('is_protected')->default(0);
$table->boolean('is_active')->default(0);

Expand Down
10 changes: 5 additions & 5 deletions src/database/migrations/2016_11_14_141657_create_cms_menus.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ public function up()
{
Schema::create('cms_menus', function (Blueprint $table) {
$table->increments('id');
$table->string('name')->nullable();
$table->string('type')->default('url');
$table->string('path')->nullable();
$table->string('color')->nullable();
$table->string('icon')->nullable();
$table->string('name', 30)->nullable();
$table->string('type', 30)->default('url');
$table->string('path', 50)->nullable();
$table->string('color', 30)->nullable();
$table->string('icon', 30)->nullable();
$table->integer('parent_id')->nullable();
$table->boolean('is_active')->default(1);
$table->boolean('is_dashboard')->default(0);
Expand Down

0 comments on commit 4a520e4

Please sign in to comment.