diff options
Diffstat (limited to 'database/migrations')
-rw-r--r-- | database/migrations/2018_12_05_152926_create_quotes_table.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/database/migrations/2018_12_05_152926_create_quotes_table.php b/database/migrations/2018_12_05_152926_create_quotes_table.php new file mode 100644 index 0000000..b20d4e1 --- /dev/null +++ b/database/migrations/2018_12_05_152926_create_quotes_table.php @@ -0,0 +1,33 @@ +<?php + +use Illuminate\Support\Facades\Schema; +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Database\Migrations\Migration; + +class CreateQuotesTable extends Migration +{ + /** + * Run the migrations. + * + * @return void + */ + public function up() + { + Schema::create('quotes', function (Blueprint $table) { + $table->increments('id'); + $table->string('quote'); + $table->string('quotist'); // NEOLOGISM - the one who said the quote + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('quotes'); + } +} |