Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('fg_events', function (Blueprint $table) { |
||
17 | $table->string('id')->index()->primary(); |
||
18 | $table->string('ministry_id', 150)->index(); |
||
19 | $table->string('name'); |
||
20 | $table->text('description'); |
||
21 | $table->json('location'); |
||
22 | $table->dateTime('start'); |
||
23 | $table->dateTime('end'); |
||
24 | $table->boolean('published')->default(false); |
||
25 | $table->string('url')->nullable(); |
||
26 | $table->string('video_url')->nullable(); |
||
27 | $table->timestamps(); |
||
28 | |||
29 | $table->foreign('ministry_id')->references('id')->on('fg_ministries')->onDelete('cascade'); |
||
30 | }); |
||
43 |