1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Fix for migrations

This commit is contained in:
David Bomba 2021-01-26 16:54:48 +11:00
parent 61ea7e3897
commit 0684c93791

View File

@ -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();
});
}