v1.5.15 Added multiple events, not done

This commit is contained in:
2021-04-27 11:23:25 +02:00
parent 384070c40b
commit e5126ae5ae
13 changed files with 295 additions and 63 deletions
@@ -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');
}
}