Skip to content

Commit

Permalink
fix: ensure rollback pass
Browse files Browse the repository at this point in the history
  • Loading branch information
warlof committed Aug 25, 2020
1 parent 319e531 commit ef239b3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public function up()
public function down()
{
Schema::table('calendar_operations', function (Blueprint $table) {
$table->dropForeign(['staging_sys_id']);

$table->dropColumn('staging_sys');
$table->dropColumn('staging_sys_id');
$table->dropColumn('staging_info');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ public function down()
if (is_null($settings['slack_integration']))
$settings['slack_integration'] = 0;

$settings['slack_webhook'] = setting('kassie.calendar.slack_webhook', true);
$settings['slack_webhook'] = setting('kassie.calendar.slack_webhook', true) ?: '';

$settings['slack_emoji_importance_full'] = setting('kassie.calendar.slack_emoji_importance_full', true);
$settings['slack_emoji_importance_full'] = setting('kassie.calendar.slack_emoji_importance_full', true) ?: '';

$settings['slack_emoji_importance_half'] = setting('kassie.calendar.slack_emoji_importance_half', true);
$settings['slack_emoji_importance_half'] = setting('kassie.calendar.slack_emoji_importance_half', true) ?: '';

$settings['slack_emoji_importance_empty'] = setting('kassie.calendar.slack_emoji_importance_empty', true);
$settings['slack_emoji_importance_empty'] = setting('kassie.calendar.slack_emoji_importance_empty', true) ?: '';

DB::table('calendar_settings')->insert($settings);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,10 @@ public function up()
});
}

public function down()
{
Schema::dropIfExists('kassie_calendar_paps');
Schema::dropIfExists('kassie_calendar_esi_tokens');
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function down()

Schema::table('kassie_calendar_paps', function(Blueprint $table){

$table->dropColumn('quantifier');
$table->dropColumn('value');

});
}
Expand Down

0 comments on commit ef239b3

Please sign in to comment.