Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateWeathersTable extends Migration
- {
- public function up()
- {
- Schema::create('weathers', function (Blueprint $table) {
- $table->increments('id');
- $table->string('temperature');
- $table->string('humidity');
- $table->timestamps();
- });
- }
- public function down()
- {
- Schema::dropIfExists('weathers');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement