mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix some broken migrations (#14040)
This commit is contained in:
@@ -28,10 +28,12 @@ class DeviceGroupsRewrite extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
// Schema::table('device_groups', function (Blueprint $table) {
|
||||
// $table->string('desc')->change();
|
||||
// $table->dropColumn(['type', 'rules']);
|
||||
// $table->text('params')->nullable()->after('pattern');
|
||||
// });
|
||||
if (\LibreNMS\DB\Eloquent::getDriver() !== 'sqlite') {
|
||||
Schema::table('device_groups', function (Blueprint $table) {
|
||||
$table->string('desc')->change();
|
||||
$table->dropColumn(['type', 'rules']);
|
||||
$table->text('params')->nullable()->after('pattern');
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ class RemovePortsStpUniqueIndex extends Migration
|
||||
public function down()
|
||||
{
|
||||
Schema::table('ports_stp', function (Blueprint $table) {
|
||||
$table->unique(['device_id', 'port_index']);
|
||||
$table->unique(['device_id', 'port_id']);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user