From 0ee38e98532a9daf7ba08ab65b7f73d6505e0aea Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 24 Aug 2018 13:17:32 +0200 Subject: Began API for posts --- .../2018_08_24_102141_create_posts_table.php | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 database/migrations/2018_08_24_102141_create_posts_table.php (limited to 'database/migrations/2018_08_24_102141_create_posts_table.php') diff --git a/database/migrations/2018_08_24_102141_create_posts_table.php b/database/migrations/2018_08_24_102141_create_posts_table.php new file mode 100644 index 0000000..f841c69 --- /dev/null +++ b/database/migrations/2018_08_24_102141_create_posts_table.php @@ -0,0 +1,33 @@ +increments('id'); + $table->integer('post_types_id'); + $table->integer('user_id'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('text_posts'); + } +} -- cgit v1.2.3