1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 13:42:49 +01:00
invoiceninja/database/migrations/2014_05_17_175626_add_quotes.php

39 lines
694 B
PHP
Raw Normal View History

2015-03-16 22:45:25 +01:00
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddQuotes extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('invoices', function($table)
{
$table->boolean('is_quote')->default(0);
$table->unsignedInteger('quote_id')->nullable();
$table->unsignedInteger('quote_invoice_id')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('invoices', function($table)
2015-09-07 11:07:55 +02:00
{
$table->dropColumn('is_quote');
2015-03-16 22:45:25 +01:00
$table->dropColumn('quote_id');
$table->dropColumn('quote_invoice_id');
});
}
}