title: How to add column in a table using laravel 5 migration without losing its data?
body: <p>I have an existing database table and I want to add column on it. However, as I run the <code>php artisan migrate</code> command, it says nothing to migrate. But I already add a Schema for adding table columns. I have read some articles and links that I should run the <code>php artisan migrate:refresh</code> first before the new columns to be added.The problem is, it will erase my existing data in my table. Is there any way I could perform the migration and successfully add columns in my table without deleting my data? Please help me with this. Thanks a lot. Here is my migration code.</p>
  
  <pre><code>public function up()
  {
      //
      Schema::create('purchase_orders', function(Blueprint $table){
  
          $table-&gt;increments('id');
          $table-&gt;string('po_code');
          $table-&gt;text('purchase_orders');
          $table-&gt;float('freight_charge');
          $table-&gt;float('overall_total');
          $table-&gt;timestamps();
  
      });
  
      Schema::table('purchase_orders', function(Blueprint $table){
          $table-&gt;string('shipped_via');
          $table-&gt;string('terms');
      });
  }
  
  /**
   * Reverse the migrations.
   *
   * @return void
   */
  public function down()
  {
      //
      Schema::drop('purchase_orders');
  }
  </code></pre>
  
  <p>I want to add column <code>shipped_via</code> and <code>terms</code> in my <code>purchase_orders</code> table.</p>