Merge Branch

This commit is contained in:
Sada Shiva
2016-02-02 18:39:22 +05:30
parent a302235274
commit 11f4b086b7
20 changed files with 542 additions and 78 deletions

View File

@@ -26,6 +26,8 @@ class CreateTicketsTable extends Migration {
$table->integer('flags');
$table->integer('ip_address');
$table->integer('assigned_to')->unsigned()->nullable()->index('assigned_to');
$table->integer('rating');
$table->integer('ratingreply');
$table->integer('lock_by');
$table->integer('lock_at');
$table->integer('source')->unsigned()->nullable()->index('source');

View File

@@ -0,0 +1,52 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Str;
class SettingsRatings extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('settings_ratings', function(Blueprint $table)
{
$table->increments('id');
$table->string('rating_name');
$table->integer('publish');
$table->integer('modify');
$table->string('slug')->unique();
$table->timestamps();
});
DB::table('settings_ratings')->insert(array(
array(
'rating_name' => 'Overall Rating',
'publish' => '1',
'modify' => '1',
'slug' => Str::slug(ucfirst('Overall Rating'))
),
array(
'rating_name' => 'Reply Rating',
'publish' => '1',
'modify' => '1',
'slug' => Str::slug(ucfirst('Reply Rating'))
)
)
);
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('settings_ratings');
}
}