You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.1 KiB
46 lines
1.1 KiB
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
class CreateSubscriptionsTable extends Migration {
|
|
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('subscriptions', function(Blueprint $table)
|
|
{
|
|
$table->increments('id');
|
|
$table->integer('project_id')->unsigned();
|
|
$table->integer('customer_id')->unsigned();
|
|
$table->integer('vendor_id')->unsigned();
|
|
$table->string('domain_name', 60);
|
|
$table->string('epp_code', 60)->nullable();
|
|
$table->integer('domain_price')->unsigned();
|
|
$table->string('hosting_capacity', 60)->nullable();
|
|
$table->boolean('status_id')->unsigned()->default(1);
|
|
$table->integer('hosting_price')->unsigned()->nullable();
|
|
$table->date('start_date')->nullable();
|
|
$table->date('due_date')->nullable();
|
|
$table->string('remark')->nullable();
|
|
$table->timestamps();
|
|
$table->unique(['domain_name','epp_code'], 'domain_name_epp_code');
|
|
});
|
|
}
|
|
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::drop('subscriptions');
|
|
}
|
|
|
|
}
|