Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function up() |
||
16 | { |
||
17 | Schema::create('fg_accounts', function (Blueprint $table) { |
||
18 | $table->string('id', 150)->primary(); |
||
19 | $table->string('ministry_id', 150)->index(); |
||
20 | $table->enum('level', Ministry::ACCOUNT_LEVELS)->default('Free'); |
||
21 | $table->dateTime('expiry_date')->default(now()); |
||
22 | $table->timestamps(); |
||
23 | |||
24 | $table->foreign('ministry_id')->references('id')->on('fg_ministries')->onDelete('cascade'); |
||
25 | }); |
||
38 |