mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 02:39:10 -04:00
Test performance
This commit is contained in:
@@ -22,9 +22,13 @@ class CreateEventsTable extends Migration
|
||||
$table->string('user_id');
|
||||
$table->string('location');
|
||||
$table->boolean('is_mandatory');
|
||||
$table->boolean('use_weekly_msg');
|
||||
$table->boolean('use_schedule');
|
||||
$table->text('desc');
|
||||
$table->text('msg');
|
||||
$table->string('date_msg');
|
||||
$table->text('schedule');
|
||||
$table->string('calendar_color');
|
||||
$table->string('calendar_icon');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ class CreateCoursesTable extends Migration
|
||||
$table->string('location');
|
||||
$table->text('comment');
|
||||
$table->integer('event_id');
|
||||
$table->integer('user_id');
|
||||
$table->string('user_id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -17,8 +17,8 @@ class CreateEventTypesTable extends Migration
|
||||
$table->bigIncrements('id');
|
||||
$table->string('name');
|
||||
$table->text('admin_desc');
|
||||
$table->string('calendar_color')->default('blue');
|
||||
$table->string('calendar_icon')->default('<i class="fa fa-question-circle"></i>');
|
||||
$table->string('calendar_color')->default('#FFFFFF');
|
||||
$table->string('calendar_icon')->default('fa fa-question-circle');
|
||||
$table->string('begin_time')->default('12:00');
|
||||
$table->string('end_time')->default('13:00');
|
||||
$table->string('location')->default('Escadron');
|
||||
@@ -27,6 +27,7 @@ class CreateEventTypesTable extends Migration
|
||||
$table->string('weekly_msg_publication_time')->default('-5day');
|
||||
$table->boolean('use_schedule')->default(false);
|
||||
$table->text('schedule_model');
|
||||
$table->text('weekly_msg');
|
||||
$table->boolean('is_promoted')->default(false);
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
@@ -17,6 +17,7 @@ class DatabaseSeeder extends Seeder
|
||||
ConfigsTableSeeder::class,
|
||||
UsersTableSeeder::class,
|
||||
ComplementaryActivitiesSeeder::class,
|
||||
EventTypeSeeder::class,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
49
database/seeds/EventTypeSeeder.php
Normal file
49
database/seeds/EventTypeSeeder.php
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class EventTypeSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
DB::table('event_types')->insert([
|
||||
[
|
||||
'name' => 'Par défault',
|
||||
'calendar_color' => '#A4A4A4',
|
||||
'calendar_icon' => 'fas fa-book',
|
||||
'begin_time' => '18:30',
|
||||
'end_time' => '21:45',
|
||||
'Location' => 'Escadron',
|
||||
'is_mandatory' => '0',
|
||||
'use_weekly_msg' => '0',
|
||||
'weekly_msg' => '<p><strong>/* Nom de l\'évènement */</strong></p><p>Heure (Cadets):</p><p>Lieu:</p><p>Tenue:</p><p>Matériel:</p><p>/* Commentaire */</p>',
|
||||
'weekly_msg_publication_time' => '-5days',
|
||||
'use_schedule' => '0',
|
||||
'schedule_model' => '{"periodes":[{"name":"Periode 1","begin_time":"19:00","end_time":"20:10"},{"name":"Pause","begin_time":"20:10","end_time":"20:30"},{"name":"Periode 2","begin_time":"20:30","end_time":"21:20"}],"niveaux":[{"name":"Niveau 1"},{"name":"Niveau 2"},{"name":"Niveau 3"}]}',
|
||||
'is_promoted' => '0',
|
||||
'admin_desc' => 'Veuillez modifier la description admin par défaut',
|
||||
],
|
||||
[
|
||||
'name' => 'Soirée d\'instruction régulière',
|
||||
'calendar_color' => 'orange',
|
||||
'calendar_icon' => 'fas fa-book',
|
||||
'begin_time' => '18:30',
|
||||
'end_time' => '21:45',
|
||||
'Location' => 'Escadron',
|
||||
'is_mandatory' => '1',
|
||||
'use_weekly_msg' => '1',
|
||||
'weekly_msg' => '<p><strong>/* Nom de l\'évènement */</strong></p><p>Heure (Cadets):</p><p>Lieu:</p><p>Tenue:</p><p>Matériel:</p><p>/* Commentaire */</p>',
|
||||
'weekly_msg_publication_time' => '-5days',
|
||||
'use_schedule' => '1',
|
||||
'schedule_model' => '{"periodes":[{"name":"Periode 1","begin_time":"19:00","end_time":"20:10"},{"name":"Pause","begin_time":"20:10","end_time":"20:30"},{"name":"Periode 2","begin_time":"20:30","end_time":"21:20"}],"niveaux":[{"name":"Niveau 1"},{"name":"Niveau 2"},{"name":"Niveau 3"}]}',
|
||||
'is_promoted' => '0',
|
||||
'admin_desc' => 'Veuillez modifier la description admin par défaut',
|
||||
]
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user