public function up()
{
// SQLite doesn't allow you to add columns which allow null values - http://bit.ly/1NXf2f1
Schema::table('deployments', function (Blueprint $table) {
if (config('database.default') === 'sqlite') {
$table->string('committer_email')->default('[email protected]');
} else {
$table->string('committer_email')->after('committer');
}
});
DB::table('deployments')->update(['committer_email' => '[email protected]']);
}