update 1.0.8.0
Commits for version update
This commit is contained in:
@@ -15,10 +15,13 @@ class CreateTicketPriorityTable extends Migration
|
||||
Schema::create('ticket_priority', function (Blueprint $table) {
|
||||
$table->increments('priority_id');
|
||||
$table->string('priority');
|
||||
$table->string('status');
|
||||
$table->string('priority_desc');
|
||||
$table->string('priority_color');
|
||||
$table->boolean('priority_urgency');
|
||||
$table->boolean('ispublic');
|
||||
$table->string('is_default');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
@@ -27,6 +27,7 @@ class CreateTicketThreadTable extends Migration
|
||||
$table->string('ip_address');
|
||||
$table->timestamps();
|
||||
});
|
||||
\DB::statement('ALTER TABLE `ticket_thread` MODIFY `body` LONGBLOB');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -43,6 +43,8 @@ class CreateTicketsTable extends Migration
|
||||
$table->dateTime('closed_at')->nullable();
|
||||
$table->dateTime('last_message_at')->nullable();
|
||||
$table->dateTime('last_response_at')->nullable();
|
||||
$table->integer('approval');
|
||||
$table->integer('follow_up');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
@@ -18,14 +18,14 @@ class CreateUsersTable extends Migration
|
||||
$table->string('first_name');
|
||||
$table->string('last_name');
|
||||
$table->boolean('gender');
|
||||
$table->string('email')->unique();
|
||||
$table->string('email')->nullable()->unique();
|
||||
$table->boolean('ban');
|
||||
$table->string('password', 60);
|
||||
$table->integer('active');
|
||||
$table->string('ext');
|
||||
$table->integer('country_code');
|
||||
$table->string('phone_number');
|
||||
$table->string('mobile');
|
||||
$table->string('mobile')->nullable()->unique();
|
||||
$table->text('agent_sign', 65535);
|
||||
$table->string('account_type');
|
||||
$table->string('account_status');
|
||||
|
@@ -20,7 +20,9 @@ class Version1079table extends Migration
|
||||
DB::table('common_settings')
|
||||
->insert(
|
||||
['option_name' => 'enable_rtl', 'option_value' => ''],
|
||||
['option_name' => 'user_set_ticket_status', 'status' => 1]
|
||||
['option_name' => 'user_set_ticket_status', 'status' => 1],
|
||||
['option_name' => 'send_otp', 'status' => 0],
|
||||
['option_name' => 'email_mandatory', 'status' => 1]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
37
database/migrations/2016_07_02_051247_create_jobs_table.php
Normal file
37
database/migrations/2016_07_02_051247_create_jobs_table.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreateJobsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('jobs', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('queue');
|
||||
$table->longText('payload');
|
||||
$table->tinyInteger('attempts')->unsigned();
|
||||
$table->tinyInteger('reserved')->unsigned();
|
||||
$table->unsignedInteger('reserved_at')->nullable();
|
||||
$table->unsignedInteger('available_at');
|
||||
$table->unsignedInteger('created_at');
|
||||
$table->index(['queue', 'reserved', 'reserved_at']);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('jobs');
|
||||
}
|
||||
}
|
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreateFailedJobsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('failed_jobs', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->text('connection');
|
||||
$table->text('queue');
|
||||
$table->longText('payload');
|
||||
$table->timestamp('failed_at')->useCurrent();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('failed_jobs');
|
||||
}
|
||||
}
|
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreateFieldValuesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('field_values', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->integer('field_id')->nullable()->unsigned();
|
||||
$table->foreign('field_id')->references('id')->on('custom_form_fields');
|
||||
$table->integer('child_id')->nullable()->unsigned();
|
||||
$table->string('field_key')->nullable();
|
||||
$table->string('field_value')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('field_values');
|
||||
}
|
||||
}
|
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreateFaveoMailsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('faveo_mails', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->integer('email_id');
|
||||
$table->string('drive');
|
||||
$table->string('key');
|
||||
$table->string('value');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('faveo_mails');
|
||||
}
|
||||
}
|
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreateFaveoQueuesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('faveo_queues', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->integer('service_id');
|
||||
$table->string('key');
|
||||
$table->string('value');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('faveo_queues');
|
||||
}
|
||||
}
|
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
use App\Model\MailJob\MailService;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreateMailServicesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('mail_services', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->string('short_name');
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
$mail = new MailService();
|
||||
$services = ['smtp' => 'SMTP', 'mail' => 'Php Mail', 'sendmail' => 'Send Mail', 'mailgun' => 'Mailgun', 'mandrill' => 'Mandrill', 'log' => 'Log file'];
|
||||
foreach ($services as $key => $value) {
|
||||
$mail->create([
|
||||
'name' => $value,
|
||||
'short_name' => $key,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('mail_services');
|
||||
}
|
||||
}
|
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
use App\Model\MailJob\QueueService;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreateQueueServicesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('queue_services', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->string('short_name');
|
||||
$table->integer('status');
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
$queue = new QueueService();
|
||||
$services = ['sync' => 'Sync', 'database' => 'Database', 'beanstalkd' => 'Beanstalkd', 'sqs' => 'SQS', 'iron' => 'Iron', 'redis' => 'Redis'];
|
||||
foreach ($services as $key => $value) {
|
||||
$queue->create([
|
||||
'name' => $value,
|
||||
'short_name' => $key,
|
||||
'status' => 0,
|
||||
]);
|
||||
}
|
||||
$q = $queue->where('short_name', 'database')->first();
|
||||
if ($q) {
|
||||
$q->status = 1;
|
||||
$q->save();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('queue_services');
|
||||
}
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreateConditionsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('conditions', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('job');
|
||||
$table->string('value');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('conditions');
|
||||
}
|
||||
}
|
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreateSocialMediaTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('social_media', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('provider');
|
||||
$table->string('key');
|
||||
$table->string('value');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('social_media');
|
||||
}
|
||||
}
|
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreateUserAdditionalInfosTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('user_additional_infos', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->integer('owner');
|
||||
$table->string('service');
|
||||
$table->string('key');
|
||||
$table->string('value')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('user_additional_infos');
|
||||
}
|
||||
}
|
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class AlterTicketSourceTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if (!Schema::hasColumn('ticket_source', 'css_class')) {
|
||||
Schema::table('ticket_source', function (Blueprint $table) {
|
||||
$table->string('css_class');
|
||||
});
|
||||
}
|
||||
DB::table('ticket_source')->delete();
|
||||
$values = $this->values();
|
||||
foreach ($values as $value) {
|
||||
DB::table('ticket_source')->insert($value);
|
||||
}
|
||||
}
|
||||
|
||||
public function values()
|
||||
{
|
||||
return[
|
||||
['name' => 'web', 'value' => 'Web', 'css_class' => 'fa fa-internet-explorer'],
|
||||
['name' => 'email', 'value' => 'E-mail', 'css_class' => 'fa fa-envelope'],
|
||||
['name' => 'agent', 'value' => 'Agent Panel', 'css_class' => 'fa fa-envelope'],
|
||||
['name' => 'facebook', 'value' => 'Facebook', 'css_class' => 'fa fa-facebook'],
|
||||
['name' => 'twitter', 'value' => 'Twitter', 'css_class' => 'fa fa-twitter'],
|
||||
['name' => 'call', 'value' => 'Call', 'css_class' => 'fa fa-phone'],
|
||||
['name' => 'chat', 'value' => 'Chat', 'css_class' => 'fa fa-comment'],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('ticket_source', function (Blueprint $table) {
|
||||
//
|
||||
});
|
||||
}
|
||||
}
|
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreateApprovalTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
//
|
||||
|
||||
Schema::create('approval', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->string('status');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
Schema::drop('approval');
|
||||
}
|
||||
}
|
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreateFollowUpTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
//
|
||||
Schema::create('followup', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->string('status');
|
||||
$table->string('condition');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
Schema::drop('followup');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user