change notes & description column type

This commit is contained in:
raishvaria
2020-12-08 12:55:28 +05:30
parent e222af335e
commit d2e11bd7df
6 changed files with 53 additions and 7 deletions

View File

@ -0,0 +1,46 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class ChangeDescriptionAndNotesColumnType extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('estimates', function (Blueprint $table) {
$table->text('notes')->nullable()->change();
});
Schema::table('expenses', function (Blueprint $table) {
$table->text('notes')->nullable()->change();
});
Schema::table('estimate_items', function (Blueprint $table) {
$table->text('description')->nullable()->change();
});
Schema::table('invoice_items', function (Blueprint $table) {
$table->text('description')->nullable()->change();
});
Schema::table('items', function (Blueprint $table) {
$table->text('description')->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}

View File

@ -1123,11 +1123,11 @@
"price_minvalue": "Price should be greater than 0.", "price_minvalue": "Price should be greater than 0.",
"amount_maxlength": "Amount should not be greater than 20 digits.", "amount_maxlength": "Amount should not be greater than 20 digits.",
"amount_minvalue": "Amount should be greater than 0.", "amount_minvalue": "Amount should be greater than 0.",
"description_maxlength": "Description should not be greater than 255 characters.", "description_maxlength": "Description should not be greater than 65,000 characters.",
"subject_maxlength": "Subject should not be greater than 100 characters.", "subject_maxlength": "Subject should not be greater than 100 characters.",
"message_maxlength": "Message should not be greater than 255 characters.", "message_maxlength": "Message should not be greater than 255 characters.",
"maximum_options_error": "Maximum of {max} options selected. First remove a selected option to select another.", "maximum_options_error": "Maximum of {max} options selected. First remove a selected option to select another.",
"notes_maxlength": "Notes should not be greater than 255 characters.", "notes_maxlength": "Notes should not be greater than 65,000 characters.",
"address_maxlength": "Address should not be greater than 255 characters.", "address_maxlength": "Address should not be greater than 255 characters.",
"ref_number_maxlength": "Ref Number should not be greater than 255 characters.", "ref_number_maxlength": "Ref Number should not be greater than 255 characters.",
"prefix_maxlength": "Prefix should not be greater than 5 characters.", "prefix_maxlength": "Prefix should not be greater than 5 characters.",

View File

@ -340,7 +340,7 @@ export default {
between: between(0, this.maxDiscount), between: between(0, this.maxDiscount),
}, },
description: { description: {
maxLength: maxLength(255), maxLength: maxLength(65000),
}, },
}, },
} }

View File

@ -302,7 +302,7 @@ export default {
}, },
notes: { notes: {
maxLength: maxLength(255), maxLength: maxLength(65000),
}, },
}, },
}, },

View File

@ -340,7 +340,7 @@ export default {
between: between(0, this.maxDiscount), between: between(0, this.maxDiscount),
}, },
description: { description: {
maxLength: maxLength(255), maxLength: maxLength(65000),
}, },
}, },
} }

View File

@ -118,7 +118,7 @@
:loading="isLoading" :loading="isLoading"
variant="primary" variant="primary"
size="lg" size="lg"
class="flex w-full justify-center md:w-auto" class="flex justify-center w-full md:w-auto"
> >
<save-icon v-if="!isLoading" class="mr-2 -ml-1" /> <save-icon v-if="!isLoading" class="mr-2 -ml-1" />
{{ isEdit ? $t('items.update_item') : $t('items.save_item') }} {{ isEdit ? $t('items.update_item') : $t('items.save_item') }}
@ -293,7 +293,7 @@ export default {
}, },
description: { description: {
maxLength: maxLength(255), maxLength: maxLength(65000),
}, },
}, },
}, },