Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Drop wishlist_items table
Browse files Browse the repository at this point in the history
  • Loading branch information
ILIYANGERMANOV committed Apr 24, 2022
1 parent 3734ab9 commit 0f180b6
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 170 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import com.ivy.wallet.io.persistence.migration.*
@Database(
entities = [
Account::class, Transaction::class, Category::class,
WishlistItem::class, Settings::class, PlannedPaymentRule::class,
Settings::class, PlannedPaymentRule::class,
User::class, ExchangeRate::class, Budget::class, Loan::class,
LoanRecord::class
],
Expand All @@ -30,8 +30,6 @@ abstract class IvyRoomDatabase : RoomDatabase() {

abstract fun budgetDao(): BudgetDao

abstract fun wishlistItemDao(): WishlistItemDao

abstract fun plannedPaymentRuleDao(): PlannedPaymentRuleDao

abstract fun settingsDao(): SettingsDao
Expand Down Expand Up @@ -69,6 +67,7 @@ abstract class IvyRoomDatabase : RoomDatabase() {
Migration117to118_Budgets(),
Migration118to119_Loans(),
Migration119to120_LoanTransactions(),
Migration120to121_DropWishlistItem()
)
.build()
}
Expand All @@ -78,7 +77,6 @@ abstract class IvyRoomDatabase : RoomDatabase() {
accountDao().deleteAll()
transactionDao().deleteAll()
categoryDao().deleteAll()
wishlistItemDao().deleteAll()
settingsDao().deleteAll()
plannedPaymentRuleDao().deleteAll()
userDao().deleteAll()
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.ivy.wallet.io.persistence.migration

import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase

class Migration120to121_DropWishlistItem : Migration(119, 120) {
override fun migrate(database: SupportSQLiteDatabase) {
database.execSQL("DROP TABLE wishlist_items")
}
}

0 comments on commit 0f180b6

Please sign in to comment.