Skip to content

Firefly III: a personal finances manager

Deleted an old unique index.

James Cole79ff67852fc3
diff --git a/app/database/migrations/2015_01_18_082406_changes_for_325.php b/app/database/migrations/2015_01_18_082406_changes_for_325.php
new file mode 100644
index 0000000000..7c86443bb9
--- /dev/null
+++ b/app/database/migrations/2015_01_18_082406_changes_for_325.php
@@ -0,0 +1,43 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+
+/**
+ * @SuppressWarnings(PHPMD.ShortMethodName)
+ * @SuppressWarnings("MethodLength") // I don't mind this in case of migrations.
+ *
+ * Class ChangesForV325
+ */
+class ChangesFor325 extends Migration
+{
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ //
+ }
+
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ //
+
+ // delete an old index:
+ Schema::table(
+ 'budget_limits', function (Blueprint $table) {
+ //$table->dropIndex('unique_ci_combo');
+ $table->dropUnique('unique_ci_combi');
+ });
+
+ }
+
+}