2022-08-01 16:52:16 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
2023-01-05 17:01:42 +00:00
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
2022-08-01 16:52:16 +00:00
|
|
|
|
|
|
|
class CreateTicketCategoriesTable extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
2023-01-05 17:01:42 +00:00
|
|
|
* @return void
|
2022-08-01 16:52:16 +00:00
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
Schema::create('ticket_categories', function (Blueprint $table) {
|
|
|
|
$table->increments('id');
|
2023-01-05 17:01:42 +00:00
|
|
|
$table->string('name');
|
2022-08-01 16:52:16 +00:00
|
|
|
$table->timestamps();
|
|
|
|
});
|
|
|
|
|
|
|
|
DB::table('ticket_categories')->insert(
|
2023-01-05 17:01:42 +00:00
|
|
|
[
|
2022-08-01 16:52:16 +00:00
|
|
|
'name' => 'Technical',
|
2023-01-05 17:01:42 +00:00
|
|
|
]
|
2022-08-01 16:52:16 +00:00
|
|
|
);
|
|
|
|
DB::table('ticket_categories')->insert(
|
2023-01-05 17:01:42 +00:00
|
|
|
[
|
2022-08-01 16:52:16 +00:00
|
|
|
'name' => 'Billing',
|
2023-01-05 17:01:42 +00:00
|
|
|
]
|
2022-08-01 16:52:16 +00:00
|
|
|
);
|
|
|
|
DB::table('ticket_categories')->insert(
|
2023-01-05 17:01:42 +00:00
|
|
|
[
|
2022-08-01 16:52:16 +00:00
|
|
|
'name' => 'Issue',
|
2023-01-05 17:01:42 +00:00
|
|
|
]
|
2022-08-01 16:52:16 +00:00
|
|
|
);
|
|
|
|
DB::table('ticket_categories')->insert(
|
2023-01-05 17:01:42 +00:00
|
|
|
[
|
2022-08-01 16:52:16 +00:00
|
|
|
'name' => 'Request',
|
2023-01-05 17:01:42 +00:00
|
|
|
]
|
2022-08-01 16:52:16 +00:00
|
|
|
);
|
|
|
|
DB::table('ticket_categories')->insert(
|
2023-01-05 17:01:42 +00:00
|
|
|
[
|
2022-08-01 16:52:16 +00:00
|
|
|
'name' => 'Other',
|
2023-01-05 17:01:42 +00:00
|
|
|
]
|
2022-08-01 16:52:16 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::dropIfExists('ticket_categories');
|
|
|
|
}
|
|
|
|
}
|