mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Spelling errors fixed.
This commit is contained in:
@@ -503,133 +503,5 @@ class ChangesForV321 extends Migration
|
||||
\DB::update('UPDATE `transaction_currencies` SET `symbol` = "€", `name` = "Euro" WHERE `code` = "EUR";');
|
||||
}
|
||||
|
||||
//
|
||||
// public function doRenameInLimitRepetitions()
|
||||
// {
|
||||
// Schema::table(
|
||||
// 'limit_repetitions', function (Blueprint $table) {
|
||||
// $table->renameColumn('limit_id', 'budget_limit_id');
|
||||
// }
|
||||
// );
|
||||
// }
|
||||
//
|
||||
// public function doBudgetLimits()
|
||||
// {
|
||||
// Schema::rename('limits', 'budget_limits');
|
||||
// Schema::table(
|
||||
// 'budget_limits', function (Blueprint $table) {
|
||||
// $table->integer('budget_id')->unsigned()->after('updated_at');
|
||||
// $table->foreign('budget_id', 'bid_foreign')->references('id')->on('budgets')->onDelete('cascade');
|
||||
// }
|
||||
// );
|
||||
// }
|
||||
//
|
||||
// public function doPiggyBankEvents()
|
||||
// {
|
||||
// Schema::rename('piggybank_events', 'piggy_bank_events');
|
||||
//
|
||||
// }
|
||||
//
|
||||
// public function doCreateCategoryTables()
|
||||
// {
|
||||
// Schema::create(
|
||||
// 'categories', function (Blueprint $table) {
|
||||
// $table->increments('id');
|
||||
// $table->timestamps();
|
||||
// $table->softDeletes();
|
||||
// $table->string('name', 50);
|
||||
// $table->integer('user_id')->unsigned();
|
||||
// $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
|
||||
// $table->unique(['user_id', 'name']);
|
||||
// }
|
||||
// );
|
||||
// Schema::create(
|
||||
// 'category_transaction_journal', function (Blueprint $table) {
|
||||
// $table->increments('id');
|
||||
// $table->integer('category_id')->unsigned();
|
||||
// $table->integer('transaction_journal_id')->unsigned();
|
||||
// $table->foreign('category_id')->references('id')->on('categories')->onDelete('cascade');
|
||||
// $table->foreign('transaction_journal_id')->references('id')->on('transaction_journals')->onDelete('cascade');
|
||||
// $table->unique(['category_id', 'transaction_journal_id'], 'catid_tjid_unique');
|
||||
// }
|
||||
// );
|
||||
//
|
||||
// }
|
||||
//
|
||||
// public function doUpdateTransactionTable()
|
||||
// {
|
||||
// Schema::table(
|
||||
// 'transactions', function (Blueprint $table) {
|
||||
// $table->dropForeign('transactions_piggybank_id_foreign');
|
||||
// #$table->dropIndex('transactions_piggybank_id_foreign');
|
||||
// $table->dropColumn('piggybank_id');
|
||||
// }
|
||||
// );
|
||||
// }
|
||||
//
|
||||
// public function doDropCompRecurTable()
|
||||
// {
|
||||
// Schema::drop('component_recurring_transaction');
|
||||
// }
|
||||
//
|
||||
// public function doDropCompTransTable()
|
||||
// {
|
||||
// Schema::drop('component_transaction');
|
||||
// }
|
||||
//
|
||||
// public function doMoveBudgets()
|
||||
// {
|
||||
// Component::where('class', 'Budget')->get()->each(
|
||||
// function (Component $c) {
|
||||
// $entry = [
|
||||
// 'user_id' => $c->user_id,
|
||||
// 'name' => $c->name
|
||||
//
|
||||
// ];
|
||||
// $budget = Budget::firstOrCreate($entry);
|
||||
// Log::debug('Migrated budget #' . $budget->id . ': ' . $budget->name);
|
||||
// // create entry in budget_transaction_journal
|
||||
// $connections = DB::table('component_transaction_journal')->where('component_id', $c->id)->get();
|
||||
// foreach ($connections as $connection) {
|
||||
// DB::table('budget_transaction_journal')->insert(
|
||||
// [
|
||||
// 'budget_id' => $budget->id,
|
||||
// 'transaction_journal_id' => $connection->transaction_journal_id
|
||||
// ]
|
||||
// );
|
||||
// }
|
||||
// }
|
||||
// );
|
||||
// }
|
||||
//
|
||||
// public function doMoveCategories()
|
||||
// {
|
||||
// Component::where('class', 'Category')->get()->each(
|
||||
// function (Component $c) {
|
||||
// $entry = [
|
||||
// 'user_id' => $c->user_id,
|
||||
// 'name' => $c->name
|
||||
//
|
||||
// ];
|
||||
// $category = Category::firstOrCreate($entry);
|
||||
// Log::debug('Migrated category #' . $category->id . ': ' . $category->name);
|
||||
// // create entry in category_transaction_journal
|
||||
// $connections = DB::table('component_transaction_journal')->where('component_id', $c->id)->get();
|
||||
// foreach ($connections as $connection) {
|
||||
// DB::table('category_transaction_journal')->insert(
|
||||
// [
|
||||
// 'category_id' => $category->id,
|
||||
// 'transaction_journal_id' => $connection->transaction_journal_id
|
||||
// ]
|
||||
// );
|
||||
// }
|
||||
// }
|
||||
// );
|
||||
// }
|
||||
//
|
||||
// public function doMoveLimitReferences()
|
||||
// {
|
||||
// throw new \FireflyIII\Exception\FireflyException('TODO');
|
||||
// }
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user