Merge Branch
This commit is contained in:
@@ -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');
|
||||
|
52
database/migrations/2016_02_01_052219_settings_ratings.php
Normal file
52
database/migrations/2016_02_01_052219_settings_ratings.php
Normal 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');
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user