29 lines
664 B
PHP
29 lines
664 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace JanVince\SmallContactForm\Updates;
|
||
|
|
|
||
|
|
use Schema;
|
||
|
|
use October\Rain\Database\Updates\Migration;
|
||
|
|
|
||
|
|
class SmallContactFormTables_06 extends Migration
|
||
|
|
{
|
||
|
|
public function up()
|
||
|
|
{
|
||
|
|
Schema::table('janvince_smallcontactform_messages', function($table)
|
||
|
|
{
|
||
|
|
$table->text('form_notes', 2000)->nullable();
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
public function down()
|
||
|
|
{
|
||
|
|
if (Schema::hasColumn('janvince_smallcontactform_messages', 'form_notes'))
|
||
|
|
{
|
||
|
|
Schema::table('janvince_smallcontactform_messages', function($table)
|
||
|
|
{
|
||
|
|
$table->dropColumn('form_notes');
|
||
|
|
});
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|