mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 02:39:10 -04:00
workflow change
This commit is contained in:
35
database/migrations/2019_07_19_171303_create_news_table.php
Normal file
35
database/migrations/2019_07_19_171303_create_news_table.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateNewsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('news', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('title');
|
||||
$table->text('body');
|
||||
$table->integer('user_id');
|
||||
$table->boolean('publish');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('news');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateComplementaryActivitiesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('complementary_activities', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->text('public_body');
|
||||
$table->text('admin_desc');
|
||||
$table->string('begin_time')->default('12:00');
|
||||
$table->string('end_time')->default('13:00');
|
||||
$table->string('location')->default('Escadron');
|
||||
$table->boolean('is_mandatory')->default(false);
|
||||
$table->boolean('is_promoted')->default(false);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('complementary_activities');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreatePicturesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('pictures', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('url');
|
||||
$table->string('title');
|
||||
$table->text('desc');
|
||||
$table->integer('pictureable_id');
|
||||
$table->string('pictureable_type');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('pictures');
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,106 @@ class ConfigsTableSeeder extends Seeder
|
||||
'name' => 'is_schedule_build',
|
||||
'state' => 0,
|
||||
'data' => 'null'
|
||||
],
|
||||
[
|
||||
'name' => 'text_public_banner_cadet_desc',
|
||||
'state' => 0,
|
||||
'data' => '["Les cadets de l\'air s\'adressent aux jeunes de 12 à 18 ans qui désirent vivre des expériences enrichissantes et relever de nouveaux défis, en participant à des activités stimulantes dans un cadre dynamique et chaleureux."]'
|
||||
],
|
||||
[
|
||||
'name' => 'text_public_banner_apprendre_plus',
|
||||
'state' => 0,
|
||||
'data' => '["En apprendre plus!"]'
|
||||
],
|
||||
[
|
||||
'name' => 'text_public_intro_title',
|
||||
'state' => 0,
|
||||
'data' => '["L\'escadron c\'est ..."]'
|
||||
],
|
||||
[
|
||||
'name' => 'text_public_intro_desc',
|
||||
'state' => 0,
|
||||
'data' => '["De nombreuses activités hebdomadaires dont : les soirées du vendredi, les soirées de musique (fanfare), l\'entrainement au tir, une équipe de biathlon, des cours de pilotage et plus encore !"]'
|
||||
],
|
||||
[
|
||||
'name' => 'text_public_picture_title',
|
||||
'state' => 0,
|
||||
'data' => '["Photos"]'
|
||||
],
|
||||
[
|
||||
'name' => 'text_public_picture_desc',
|
||||
'state' => 0,
|
||||
'data' => '["Voici quelques photos de nos activités, même s\'il est mieux d\'y participer réellement!"]'
|
||||
],
|
||||
[
|
||||
'name' => 'text_public_picture_nb',
|
||||
'state' => 0,
|
||||
'data' => '["6"]'
|
||||
],
|
||||
[
|
||||
'name' => 'text_public_cta',
|
||||
'state' => 0,
|
||||
'data' => '["Êtes-vous prêt à en faire partie ?"]'
|
||||
],
|
||||
[
|
||||
'name' => 'media_facebook',
|
||||
'state' => 0,
|
||||
'data' => '["https://www.facebook.com/"]'
|
||||
],
|
||||
[
|
||||
'name' => 'media_twitter',
|
||||
'state' => 0,
|
||||
'data' => '["https://twitter.com"]'
|
||||
],
|
||||
[
|
||||
'name' => 'media_instagram',
|
||||
'state' => 0,
|
||||
'data' => '["https://www.instagram.com"]'
|
||||
],
|
||||
[
|
||||
'name' => 'media_email',
|
||||
'state' => 0,
|
||||
'data' => '["exemple@email.com"]'
|
||||
],
|
||||
[
|
||||
'name' => 'escadron_address',
|
||||
'state' => 0,
|
||||
'data' => '["000 Rue Exemple, Québec, Canada"]'
|
||||
],
|
||||
[
|
||||
'name' => 'escadron_name_full',
|
||||
'state' => 0,
|
||||
'data' => '["Escadron 000 Exemple"]'
|
||||
],
|
||||
[
|
||||
'name' => 'escadron_name_short',
|
||||
'state' => 0,
|
||||
'data' => '["Escadron 000"]'
|
||||
],
|
||||
[
|
||||
'name' => 'escadron_number',
|
||||
'state' => 0,
|
||||
'data' => '["000"]'
|
||||
],
|
||||
[
|
||||
'name' => 'escadron_element',
|
||||
'state' => 0,
|
||||
'data' => '["Aviation"]'
|
||||
],
|
||||
[
|
||||
'name' => 'element_title',
|
||||
'state' => 0,
|
||||
'data' => '["Cadet de l\'aviation royale du Canada"]'
|
||||
],
|
||||
[
|
||||
'name' => 'escadron_direct_googlemap_link',
|
||||
'state' => 0,
|
||||
'data' => '["https://goo.gl/maps/iLwGZLwWXujwoAg59"]'
|
||||
],
|
||||
[
|
||||
'name' => 'escadron_phone',
|
||||
'state' => 0,
|
||||
'data' => '["(418) 722-7712"]'
|
||||
]
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -14,7 +14,8 @@ class DatabaseSeeder extends Seeder
|
||||
$this->call([
|
||||
JobsTableSeeder::class,
|
||||
RanksTableSeeder::class,
|
||||
ConfigsTableSeeder::class
|
||||
ConfigsTableSeeder::class,
|
||||
UsersTableSeeder::class
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,6 +11,17 @@ class UsersTableSeeder extends Seeder
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
//
|
||||
DB::table('users')->insert([
|
||||
'firstname' => 'Administrateur',
|
||||
'lastname' => 'Administrateur',
|
||||
'email' => 'admin@exvps.ca',
|
||||
'password' => bcrypt('SuperAdmin'),
|
||||
'rank' => '1',
|
||||
'adress' => 'Inconnu',
|
||||
'age' => '99',
|
||||
'avatar' => '3',
|
||||
'sexe' => 'm',
|
||||
'job' => '1',
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user