v1.5.15 Added multiple events, not done
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateMultipleEventsParent extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('multiple_events_parent', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('week');
|
||||
$table->foreignId('resource_id')->nullable()->constrained('resources', 'id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('multiple_events');
|
||||
}
|
||||
}
|
||||
@@ -15,12 +15,12 @@ class CreateMultipleEvents extends Migration
|
||||
{
|
||||
Schema::create('multiple_events', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('week');
|
||||
$table->json('date');
|
||||
$table->json('event_name');
|
||||
$table->json('accountable');
|
||||
//$table->longText('event_name');
|
||||
//$table->string('accountable');
|
||||
$table->foreignId('multiple_events_parent_id')->constrained('multiple_events_parent', 'id');
|
||||
$table->string("name");
|
||||
$table->string("accountable");
|
||||
$table->longText("description");
|
||||
$table->dateTime("date");
|
||||
$table->dateTime('event_end');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
@@ -32,6 +32,6 @@ class CreateMultipleEvents extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('multipleevents_controllers');
|
||||
Schema::dropIfExists('multiple_events');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,6 +24,9 @@ class NewsTypeSeeder extends Seeder
|
||||
[
|
||||
'type' => "Guide",
|
||||
],
|
||||
[
|
||||
'type' => "MultipleEvent",
|
||||
],
|
||||
];
|
||||
|
||||
foreach ($newstypedata as $data) {
|
||||
|
||||
Reference in New Issue
Block a user