Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevebaros/ff07ef13f168e86dbf5ab65fa9350cdf to your computer and use it in GitHub Desktop.
Save stevebaros/ff07ef13f168e86dbf5ab65fa9350cdf to your computer and use it in GitHub Desktop.
add reference to submissions
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddSubReferenceToFormSubmissionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('form_submissions', function (Blueprint $table) {
$table->string('sub_reference',16)->after('content')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('form_submissions', function (Blueprint $table) {
//
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment