Skip to content

Commit

Permalink
Merge pull request #85 from borazslo/master
Browse files Browse the repository at this point in the history
Fix #81 / Add Tít
  • Loading branch information
briff committed Sep 17, 2014
2 parents 5d8854b + eca93af commit 09c3168
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions app/database/migrations/2014_09_17_105544_addTitToAbbrevs.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use SzentirasHu\Models\Entities\BookAbbrev;

class AddTitToAbbrevs extends Migration {

/**
* Run the migrations.
*
* @return void
*/
public function up()
{
$abbrev = new BookAbbrev();
$abbrev->abbrev = "Tít";
$abbrev->books_id = 217;
$abbrev->save();
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
BookAbbrev::whereIn('abbrev', [ '1Tesz', '2Tesz'])->delete();
}

}

0 comments on commit 09c3168

Please sign in to comment.