Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateCityColumnInLocationTable extends Migration {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::table('locations', function($table)
- {
- $table->string('city');
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::table('locations', function($table)
- {
- $table->dropColumn('city');
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement