Skip to content

Commit ed5dac8

Browse files
authored
Merge pull request #5 from Affenpilot/develop
Develop
2 parents 4318fd4 + c787aed commit ed5dac8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

database/migrations/2016_12_13_130626_create_posts_table.php renamed to database/migrations/2016_12_13_130626_create_timeline_posts_table.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
class CreatePostsTable extends Migration
7+
class CreateTimelinePostsTable extends Migration
88
{
99
/**
1010
* Run the migrations.
@@ -13,7 +13,7 @@ class CreatePostsTable extends Migration
1313
*/
1414
public function up()
1515
{
16-
Schema::create('posts', function (Blueprint $table) {
16+
Schema::create('timeline_posts', function (Blueprint $table) {
1717
$table->increments('id');
1818
$table->text('body');
1919
$table->morphs('author');
@@ -29,6 +29,6 @@ public function up()
2929
*/
3030
public function down()
3131
{
32-
Schema::dropIfExists('posts');
32+
Schema::dropIfExists('timeline_posts');
3333
}
3434
}

src/Models/Post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Post extends Model
99
/**
1010
* @var string
1111
*/
12-
public $table = 'posts';
12+
public $table = 'timeline_posts';
1313

1414
/**
1515
* @var array

0 commit comments

Comments
 (0)