1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Make license fields nullable

This commit is contained in:
Hillel Coren 2018-07-26 20:15:53 +03:00
parent 6beceb35e0
commit c354179d7f

View File

@ -21,6 +21,16 @@ class FixPaymentContactForeignKey extends Migration
Schema::table('payments', function ($table) { Schema::table('payments', function ($table) {
$table->foreign('contact_id')->references('id')->on('contacts')->onDelete('cascade'); $table->foreign('contact_id')->references('id')->on('contacts')->onDelete('cascade');
}); });
Schema::table('licenses', function ($table) {
$table->unsignedInteger('affiliate_id')->nullable()->change();
$table->string('first_name')->nullable()->change();
$table->string('last_name')->nullable()->change();
$table->string('email')->nullable()->change();
$table->string('license_key')->unique()->nullable()->change();
$table->boolean('is_claimed')->nullable()->change();
$table->string('transaction_reference')->nullable()->change();
});
} catch (Exception $exception) { } catch (Exception $exception) {
// do nothing, change only needed for invoiceninja servers // do nothing, change only needed for invoiceninja servers
} }