Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix StyleCI
  • Loading branch information
asbiin committed Feb 3, 2018
commit a57c1f94c896fc6e5f8e57ef7be98de4c18467e0
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ class ChangeGiftColumnStructure extends Migration
*/
public function up()
{
if (DB::connection()->getDriverName() == 'pgsql')
{
if (DB::connection()->getDriverName() == 'pgsql') {
DB::statement('ALTER TABLE gifts ALTER COLUMN about_object_id TYPE integer USING (trim(about_object_id)::integer);');
}else
{
} else {
DB::statement('ALTER TABLE gifts MODIFY about_object_id INTEGER;');
}

Expand Down