Update Laravel to 7.0

This commit is contained in:
George Frederick "Buzz" Beurling
2020-06-20 17:03:30 -04:00
parent f104c1b61b
commit 8866cafd31
57 changed files with 8739 additions and 2281 deletions

View File

@@ -26,6 +26,7 @@ class CreateEventsTable extends Migration
$table->boolean('use_schedule');
$table->text('desc');
$table->text('msg');
$table->string('weekly_msg_file');
$table->text('schedule');
$table->string('calendar_color');
$table->string('calendar_icon');

View File

@@ -20,6 +20,7 @@ class CreateCoursesTable extends Migration
$table->integer('periode');
$table->integer('level');
$table->string('location');
$table->text('desc');
$table->text('comment');
$table->text('comment_officer');
$table->integer('event_id');

View File

@@ -27,7 +27,6 @@ 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();
});

View File

@@ -33,6 +33,6 @@ class CreateGoogleDriveFileTable extends Migration
*/
public function down()
{
Schema::dropIfExists('google_drive_file');
Schema::dropIfExists('google_drive_files');
}
}

View File

@@ -21,7 +21,6 @@ class EventTypeSeeder extends Seeder
'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"}]}',
@@ -37,12 +36,11 @@ class EventTypeSeeder extends Seeder
'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>',
'admin_desc' => '<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',
]
]);
}