Fix for migrations
This commit is contained in:
parent
61ea7e3897
commit
0684c93791
1 changed files with 4 additions and 2 deletions
|
|
@ -14,11 +14,13 @@ class AddNumberFieldToClientsAndVendors extends Migration
|
|||
public function up()
|
||||
{
|
||||
Schema::table('clients', function (Blueprint $table) {
|
||||
$table->string('number')->nullable();
|
||||
$table->renameColumn('id_number', 'number');
|
||||
$table->string('id_number')->nullable();
|
||||
});
|
||||
|
||||
Schema::table('vendors', function (Blueprint $table) {
|
||||
$table->string('number')->nullable();
|
||||
$table->renameColumn('id_number', 'number');
|
||||
$table->string('id_number')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue