Skip to content

A free open source IT asset/license management system

Fixed borked down() method in migration

snipe19313e4b83f0
diff --git a/database/migrations/2017_01_09_040429_create_locations_ldap_query_field.php b/database/migrations/2017_01_09_040429_create_locations_ldap_query_field.php
index 54d609d719..f67f85c2aa 100644
--- a/database/migrations/2017_01_09_040429_create_locations_ldap_query_field.php
+++ b/database/migrations/2017_01_09_040429_create_locations_ldap_query_field.php
@@ -24,8 +24,8 @@ class CreateLocationsLdapQueryField extends Migration
*/
public function down()
{
- Schema::table('locations', function ($table) {
- $table->string('ldap_ou')->nullable()->default(null);
+ Schema::table('locations', function (Blueprint $table) {
+ $table->dropColumn('ldap_ou');
});
}
}