Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('fg_sermons', function (Blueprint $table) { |
||
17 | $table->string('id', 150)->primary(); |
||
18 | $table->string('ministry_id', 150)->index(); |
||
19 | $table->string('title'); |
||
20 | $table->string('preacher'); |
||
21 | $table->date('date')->default(today()); |
||
22 | $table->json('main_verses'); |
||
23 | $table->json('reference_verses')->nullable(); |
||
24 | $table->longText('sermon'); |
||
25 | $table->string('resource')->nullable(); |
||
26 | $table->timestamps(); |
||
27 | |||
28 | $table->foreign('ministry_id')->references('id')->on('fg_ministries')->onDelete('cascade'); |
||
29 | }); |
||
42 |