Add Dynamic Form Processing for Custom Forms

This commit is contained in:
2020-05-08 08:10:25 +01:00
parent 4c6a435e34
commit cf7cc142a7
8 changed files with 174 additions and 19 deletions

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddVacancyIDToResponses extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('responses', function (Blueprint $table) {
$table->bigInteger('associatedVacancyID')->unsigned()->after('responseFormID');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('responses', function (Blueprint $table) {
$table->dropColumn('associatedVacancyID');
});
}
}