Merge pull request #15840 from marcusmoore/fixes/migration-rollbacks
Fixed a couple migrate:rollback issues
This commit is contained in:
commit
d60ac0c78d
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
});
|
||||
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue