added ownership

This commit is contained in:
Denis Duliçi
2021-06-17 10:59:07 +03:00
parent de0d26b803
commit a3572de1ec
54 changed files with 253 additions and 37 deletions

View File

@ -0,0 +1,82 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CoreV2117 extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('accounts', function (Blueprint $table) {
$table->unsignedInteger('created_by')->nullable()->after('enabled');
});
Schema::table('categories', function (Blueprint $table) {
$table->unsignedInteger('created_by')->nullable()->after('enabled');
});
Schema::table('companies', function (Blueprint $table) {
$table->unsignedInteger('created_by')->nullable()->after('enabled');
});
Schema::table('contacts', function (Blueprint $table) {
$table->unsignedInteger('created_by')->nullable()->after('reference');
});
Schema::table('currencies', function (Blueprint $table) {
$table->unsignedInteger('created_by')->nullable()->after('enabled');
});
Schema::table('dashboards', function (Blueprint $table) {
$table->unsignedInteger('created_by')->nullable()->after('enabled');
});
Schema::table('documents', function (Blueprint $table) {
$table->unsignedInteger('created_by')->nullable()->after('parent_id');
});
Schema::table('items', function (Blueprint $table) {
$table->unsignedInteger('created_by')->nullable()->after('enabled');
});
Schema::table('reconciliations', function (Blueprint $table) {
$table->unsignedInteger('created_by')->nullable()->after('reconciled');
});
Schema::table('reports', function (Blueprint $table) {
$table->unsignedInteger('created_by')->nullable()->after('settings');
});
Schema::table('taxes', function (Blueprint $table) {
$table->unsignedInteger('created_by')->nullable()->after('enabled');
});
Schema::table('transactions', function (Blueprint $table) {
$table->unsignedInteger('created_by')->nullable()->after('parent_id');
});
Schema::table('transfers', function (Blueprint $table) {
$table->unsignedInteger('created_by')->nullable()->after('income_transaction_id');
});
Schema::table('widgets', function (Blueprint $table) {
$table->unsignedInteger('created_by')->nullable()->after('settings');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}