Skip to content

Commit d60ac0c

Browse files
authored
Merge pull request #15840 from marcusmoore/fixes/migration-rollbacks
Fixed a couple migrate:rollback issues
2 parents 3fb543b + f520607 commit d60ac0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

database/migrations/2023_08_01_174150_change_webhook_settings_variable_type.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function up()
2626
public function down()
2727
{
2828
Schema::table('settings', function (Blueprint $table) {
29-
$table->varchar('webhook_endpoint')->change();
29+
$table->string('webhook_endpoint')->change();
3030
});
3131

3232
}

database/migrations/2024_09_17_204302_change_user_id_to_created_by.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function down(): void
4242
}
4343

4444
foreach ($this->existing_table_list() as $table) {
45-
if (Schema::hasColumn($table, 'user_id')) {
45+
if (Schema::hasColumn($table, 'created_by')) {
4646
Schema::table($table, function (Blueprint $table) {
4747
$table->renameColumn('created_by', 'user_id');
4848
});

0 commit comments

Comments
 (0)