Advertisement
Guest User

Untitled

a guest
Nov 21st, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.54 KB | None | 0 0
  1. <?php
  2.  
  3. use Illuminate\Support\Facades\Schema;
  4. use Illuminate\Database\Schema\Blueprint;
  5. use Illuminate\Database\Migrations\Migration;
  6.  
  7. class CreateWeathersTable extends Migration
  8. {
  9.     public function up()
  10.     {
  11.  
  12.         Schema::create('weathers', function (Blueprint $table) {
  13.             $table->increments('id');
  14.             $table->string('temperature');
  15.             $table->string('humidity');
  16.             $table->timestamps();
  17.         });
  18.     }
  19.  
  20.     public function down()
  21.     {
  22.         Schema::dropIfExists('weathers');
  23.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement