Merge pull request #15840 from marcusmoore/fixes/migration-rollbacks

Fixed a couple migrate:rollback issues
This commit is contained in:
snipe
2024-11-19 10:20:58 +00:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ class ChangeWebhookSettingsVariableType extends Migration
public function down()
{
Schema::table('settings', function (Blueprint $table) {
$table->varchar('webhook_endpoint')->change();
$table->string('webhook_endpoint')->change();
});
}

View File

@@ -42,7 +42,7 @@ return new class extends Migration
}
foreach ($this->existing_table_list() as $table) {
if (Schema::hasColumn($table, 'user_id')) {
if (Schema::hasColumn($table, 'created_by')) {
Schema::table($table, function (Blueprint $table) {
$table->renameColumn('created_by', 'user_id');
});