cleanup day
This commit is contained in:
@@ -1,39 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateHelpDeskTicketsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if(!Schema::hasTable('help_desk_tickets')) {
|
||||
Schema::create('help_desk_tickets', function(Blueprint $table) {
|
||||
$table->increments('ticket_id');
|
||||
$table->string('user_id');
|
||||
$table->string('assigned_id')->default(0);
|
||||
$table->string('department');
|
||||
$table->string('subject');
|
||||
$table->text('body');
|
||||
$table->boolean('active');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('help_desk_tickets');
|
||||
}
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateHelpDeskTicketResponsesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if(!Schema::hasTable('help_desk_ticket_responses')) {
|
||||
Schema::create('help_desk_ticket_responses', function(Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->integer('ticket_id');
|
||||
$table->string('assigned_id');
|
||||
$table->text('body');
|
||||
$table->timestamps();
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('help_desk_ticket_responses');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateClonesMailingTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('clones_mailing', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('character_id');
|
||||
$table->integer('time_sent');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('clones_mailing');
|
||||
}
|
||||
}
|
||||
+8
-3
@@ -4,7 +4,7 @@ use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateHelpDeskTicketTable extends Migration
|
||||
class DropPlayerdonationjournalTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
@@ -13,7 +13,12 @@ class CreateHelpDeskTicketTable extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
//
|
||||
Schema::dropIfExists('PlayerDonationJournal');
|
||||
Schema::dropIfExists('MarketOrders');
|
||||
Schema::dropIfExists('help_desk_ticket');
|
||||
Schema::dropIfExists('help_desk_tickets');
|
||||
Schema::dropIfExists('help_desk_ticket_responses');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -23,6 +28,6 @@ class CreateHelpDeskTicketTable extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('help_desk_ticket');
|
||||
//
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use DB;
|
||||
|
||||
class CreateAvailableUserRolesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if(!Schema::hasTable('available_user_roles')) {
|
||||
Schema::create('available_user_roles', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('role');
|
||||
$table->string('description');
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
DB::table('available_user_roles')->insert([
|
||||
'role' => 'None',
|
||||
'description' => 'User has no roles and is not allowed in the site.',
|
||||
]);
|
||||
|
||||
DB::table('available_user_roles')->insert([
|
||||
'role' => 'Guest',
|
||||
'description' => 'Guest of the site.',
|
||||
]);
|
||||
|
||||
DB::table('available_user_roles')->insert([
|
||||
'role' => 'Renter',
|
||||
'description' => 'Renters of W4RP.',
|
||||
]);
|
||||
|
||||
DB::table('available_user_roles')->insert([
|
||||
'role' => 'User',
|
||||
'description' => 'Members of Legacy allowed on the site.',
|
||||
]);
|
||||
|
||||
DB::table('available_user_roles')->insert([
|
||||
'role' => 'Admin',
|
||||
'description' => 'Admin of the site.',
|
||||
]);
|
||||
|
||||
DB::table('available_user_roles')->insert([
|
||||
'role' => 'SuperUser',
|
||||
'description' => 'Super user of the site.',
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('available_user_roles');
|
||||
}
|
||||
}
|
||||
@@ -3,10 +3,12 @@
|
||||
use Illuminate\Database\Seeder;
|
||||
use GuzzleHttp\Exception\GuzzleException;
|
||||
use GuzzleHttp\Client;
|
||||
use App\Models\Config;
|
||||
use App\Models\Moon;
|
||||
use App\Models\Price;
|
||||
use App\Models\ItemComposition;
|
||||
|
||||
use App\Models\Moon\Config;
|
||||
use App\Models\Moon\Moon;
|
||||
use App\Models\Moon\Price;
|
||||
use App\Models\Moon\ItemComposition;
|
||||
use App\Models\Moon\OrePrice;
|
||||
|
||||
class OrePricesSeeder extends Seeder
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user