mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 10:49:10 -04:00
Update Laravel to 7.0
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
@@ -33,6 +33,6 @@ class CreateGoogleDriveFileTable extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('google_drive_file');
|
||||
Schema::dropIfExists('google_drive_files');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
]
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user