From 5a8c47e29afdbb61c32c1e03162abb1bb871ee9e Mon Sep 17 00:00:00 2001 From: horus Date: Thu, 2 Apr 2020 21:52:04 +0200 Subject: Initial commit. --- .../2020_03_28_164915_add_excerpt_to_article.php | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 database/migrations/2020_03_28_164915_add_excerpt_to_article.php (limited to 'database/migrations/2020_03_28_164915_add_excerpt_to_article.php') diff --git a/database/migrations/2020_03_28_164915_add_excerpt_to_article.php b/database/migrations/2020_03_28_164915_add_excerpt_to_article.php new file mode 100644 index 0000000..c4936b9 --- /dev/null +++ b/database/migrations/2020_03_28_164915_add_excerpt_to_article.php @@ -0,0 +1,32 @@ +text('excerpt_html')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('article', function (Blueprint $table) { + $table->dropColumn('excerpt_html'); + }); + } +} -- cgit v1.2.3