mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 17:44:29 -04:00
Fix for self host database migrations
This commit is contained in:
parent
30daf0c29f
commit
a2798f75d2
@ -29,16 +29,17 @@ class AddPageSize extends Migration
|
||||
$table->unsignedInteger('account_id')->index();
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
|
||||
$table->string('name')->nullable();
|
||||
$table->unsignedInteger('public_id')->index();
|
||||
});
|
||||
|
||||
Schema::table('expense_categories', function ($table) {
|
||||
$table->foreign('account_id')->references('id')->on('accounts')->onDelete('cascade');
|
||||
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
|
||||
|
||||
$table->unsignedInteger('public_id')->index();
|
||||
$table->unique( array('account_id','public_id') );
|
||||
});
|
||||
|
||||
|
||||
Schema::table('expenses', function ($table) {
|
||||
$table->unsignedInteger('expense_category_id')->nullable()->index();
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user