update v 1.0.7.5

This commit is contained in:
Sujit Prasad
2016-06-13 20:41:55 +05:30
parent aa9786d829
commit 283d97e3ea
5078 changed files with 339851 additions and 175995 deletions

View File

@@ -32,6 +32,8 @@ class CreateEmailsTable extends Migration
$table->string('sending_port');
$table->string('sending_protocol');
$table->string('sending_encryption');
$table->string('smtp_validate');
$table->string('smtp_authentication');
$table->string('internal_notes');
$table->boolean('auto_response');
$table->boolean('fetching_status');

View File

@@ -14,7 +14,7 @@ class CreateKbArticleTable extends Migration
{
Schema::create('kb_article', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->text('name');
$table->string('slug');
$table->text('description', 65535);
$table->boolean('status');

View File

@@ -31,6 +31,7 @@ class CreateSettingsSystemTable extends Migration
$table->string('day_date_time');
$table->integer('time_zone')->unsigned()->nullable()->index('time_zone');
$table->string('content');
$table->string('version');
$table->timestamps();
});
}

View File

@@ -21,6 +21,7 @@ class CreateSettingsTicketTable extends Migration
$table->string('help_topic');
$table->string('max_open_ticket');
$table->string('collision_avoid');
$table->string('lock_ticket_frequency')->default(0);
$table->string('captcha');
$table->boolean('status');
$table->boolean('claim_response');

View File

@@ -20,6 +20,8 @@ class CreateTicketStatusTable extends Migration
$table->string('message');
$table->integer('flags');
$table->integer('sort');
$table->integer('email_user');
$table->string('icon_class');
$table->string('properties');
$table->timestamps();
});

View File

@@ -23,6 +23,7 @@ class CreateUsersTable extends Migration
$table->string('password', 60);
$table->integer('active');
$table->string('ext');
$table->integer('country_code');
$table->string('phone_number');
$table->string('mobile');
$table->text('agent_sign', 65535);

View File

@@ -18,7 +18,7 @@ class CreateNotificationTypesTable extends Migration
$table->string('type');
$table->string('icon_class');
$table->timestamps();
});
});
}
/**

View File

@@ -18,7 +18,7 @@ class CreateUserNotificationTable extends Migration
$table->integer('user_id');
$table->integer('is_read');
$table->timestamps();
});
});
}
/**

View File

@@ -20,7 +20,7 @@ class CreateWorkflowNameTable extends Migration
$table->string('target');
$table->text('internal_note');
$table->timestamps();
});
});
}
/**

View File

@@ -20,7 +20,7 @@ class CreateWorkflowRuleTable extends Migration
$table->string('matching_relation');
$table->text('matching_value');
$table->timestamps();
});
});
Schema::table('workflow_rules', function (Blueprint $table) {
$table->foreign('workflow_id', 'workflow_rules_1')->references('id')->on('workflow_name')->onUpdate('NO ACTION')->onDelete('RESTRICT');

View File

@@ -18,10 +18,10 @@ class CreateWorkflowActionTable extends Migration
$table->string('condition');
$table->string('action');
$table->timestamps();
});
});
Schema::table('workflow_action', function (Blueprint $table) {
$table->foreign('workflow_id', 'workflow_action_1')->references('id')->on('workflow_name')->onUpdate('NO ACTION')->onDelete('RESTRICT');
});
$table->foreign('workflow_id', 'workflow_action_1')->references('id')->on('workflow_name')->onUpdate('NO ACTION')->onDelete('RESTRICT');
});
}
/**

View File

@@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateCountryCodeTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('country_code', function (Blueprint $table) {
$table->increments('id');
$table->char('iso', 2);
$table->string('name', 100);
$table->string('nicename', 100);
$table->char('iso3', 3);
$table->smallInteger('numcode');
$table->integer('phonecode');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('country_code');
}
}

View File

@@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateBarNotificationsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('bar_notifications', function (Blueprint $table) {
$table->increments('id');
$table->string('key');
$table->string('value');
$table->timestamps();
});
$version = \Config::get('app.version');
$date = date('Y-m-d H:i:s');
//\DB::table('bar_notifications')->insert(['key'=>'new-install','value'=>"Congrates ! You have installed $version",'created_at'=>$date]);
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('bar_notifications');
}
}

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateApiSettingsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('api_settings', function (Blueprint $table) {
$table->increments('id');
$table->string('key');
$table->string('value');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('api_settings');
}
}

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateWorkflowCloseTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('workflow_close', function (Blueprint $table) {
$table->increments('id');
$table->integer('days');
$table->integer('condition');
$table->integer('send_email');
$table->integer('status');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('workflow_close');
}
}

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateCommonSettingsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('common_settings', function (Blueprint $table) {
$table->increments('id');
$table->string('option_name');
$table->string('option_value');
$table->string('status');
$table->string('optional_field');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('common_settings');
}
}

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateLoginAttemptsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('login_attempts', function (Blueprint $table) {
$table->increments('id');
$table->string('User');
$table->string('IP');
$table->string('Attempts');
$table->datetime('LastLogin');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('login_attempts');
}
}

View File

@@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateRatingsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('ratings', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->integer('display_order');
$table->integer('allow_modification');
$table->integer('rating_scale');
$table->string('rating_area');
$table->string('restrict');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('ratings');
}
}

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateRatingRefTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('rating_ref', function (Blueprint $table) {
$table->increments('id');
$table->integer('rating_id');
$table->integer('ticket_id');
$table->integer('thread_id');
$table->integer('rating_value');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('rating_ref');
}
}

View File

@@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateSettingsSecurityTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('settings_security', function (Blueprint $table) {
$table->increments('id');
$table->string('lockout_message');
$table->integer('backlist_offender');
$table->integer('backlist_threshold');
$table->integer('lockout_period');
$table->integer('days_to_keep_logs');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('settings_security');
}
}

View File

@@ -0,0 +1,37 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateTemplatesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('templates', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('variable');
$table->integer('type');
$table->string('subject');
$table->text('message');
$table->string('description');
$table->integer('set_id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('templates');
}
}

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateTemplateSetsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('template_sets', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->integer('active');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('template_sets');
}
}

View File

@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateTemplateTypesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('template_types', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('settings_types');
}
}

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateTicketTokenTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('ticket_token', function (Blueprint $table) {
$table->increments('id');
$table->integer('ticket_id');
$table->string('token');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('ticket_token');
}
}

File diff suppressed because it is too large Load Diff