Skip to content

Commit

Permalink
Drop tags table
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth committed Mar 25, 2024
1 parent b0df3cc commit c535a84
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 63 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ import dev.sasikanth.rss.reader.database.DateAdapter
import dev.sasikanth.rss.reader.database.Feed
import dev.sasikanth.rss.reader.database.Post
import dev.sasikanth.rss.reader.database.ReaderDatabase
import dev.sasikanth.rss.reader.database.Tag
import dev.sasikanth.rss.reader.database.UuidAdapter
import dev.sasikanth.rss.reader.di.scopes.AppScope
import me.tatarka.inject.annotations.Provides

Expand All @@ -45,12 +43,6 @@ internal interface DataComponent : SqlDriverPlatformComponent, DataStorePlatform
lastCleanUpAtAdapter = DateAdapter
),
bookmarkAdapter = Bookmark.Adapter(dateAdapter = DateAdapter),
tagAdapter =
Tag.Adapter(
idAdapter = UuidAdapter,
createdAtAdapter = DateAdapter,
updatedAtAdapter = DateAdapter
)
)
}

Expand All @@ -65,6 +57,4 @@ internal interface DataComponent : SqlDriverPlatformComponent, DataStorePlatform

@Provides
fun providesFeedSearchFTSQueries(database: ReaderDatabase) = database.feedSearchFTSQueries

@Provides fun providesTagQueries(database: ReaderDatabase) = database.tagQueries
}
Binary file not shown.

This file was deleted.

1 change: 1 addition & 0 deletions shared/src/commonMain/sqldelight/migrations/11.sqm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP TABLE IF EXISTS tag;

0 comments on commit c535a84

Please sign in to comment.