File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 44use Illuminate \Database \Schema \Blueprint ;
55use 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}
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments