mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 00:11:35 +02:00
55 lines
1.4 KiB
PHP
55 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* Invoice Ninja (https://invoiceninja.com).
|
|
*
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
*
|
|
* @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com)
|
|
*
|
|
* @license https://www.elastic.co/licensing/elastic-license
|
|
*/
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration {
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::table('expenses', function (Blueprint $table) {
|
|
$table->string('number')->nullable();
|
|
$table->unique(['company_id', 'number']);
|
|
});
|
|
|
|
Schema::table('tasks', function (Blueprint $table) {
|
|
$table->string('number')->nullable();
|
|
$table->unique(['company_id', 'number']);
|
|
});
|
|
|
|
Schema::table('vendors', function (Blueprint $table) {
|
|
$table->text('vendor_hash')->nullable();
|
|
$table->text('public_notes')->nullable();
|
|
// $table->unique(['company_id', 'number']);
|
|
});
|
|
|
|
Schema::table('vendor_contacts', function (Blueprint $table) {
|
|
$table->boolean('send_email')->default(0);
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
//
|
|
}
|
|
};
|