File tree Expand file tree Collapse file tree
composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/navigation
core/data/src/androidMain/kotlin/zed/rainxch/core/data/local/db Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -360,7 +360,7 @@ private fun LiquidGlassTabItem(
360360 )
361361
362362 val horizontalPadding by animateDpAsState(
363- targetValue = if (isSelected) 20 .dp else 14 .dp,
363+ targetValue = if (isSelected) 14 .dp else 10 .dp,
364364 animationSpec =
365365 spring(
366366 dampingRatio = Spring .DampingRatioNoBouncy ,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import zed.rainxch.core.data.local.db.migrations.MIGRATION_2_3
88import zed.rainxch.core.data.local.db.migrations.MIGRATION_3_4
99import zed.rainxch.core.data.local.db.migrations.MIGRATION_4_5
1010import zed.rainxch.core.data.local.db.migrations.MIGRATION_5_6
11+ import zed.rainxch.core.data.local.db.migrations.MIGRATION_6_7
1112import zed.rainxch.core.data.local.db.migrations.MIGRATION_7_8
1213
1314fun initDatabase (context : Context ): AppDatabase {
@@ -24,6 +25,7 @@ fun initDatabase(context: Context): AppDatabase {
2425 MIGRATION_3_4 ,
2526 MIGRATION_4_5 ,
2627 MIGRATION_5_6 ,
28+ MIGRATION_6_7 ,
2729 MIGRATION_7_8 ,
2830 ).build()
2931}
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ val MIGRATION_5_6 =
1010 """
1111 CREATE TABLE IF NOT EXISTS seen_repos (
1212 repoId INTEGER NOT NULL PRIMARY KEY,
13+ repoName TEXT NOT NULL DEFAULT '',
14+ repoOwner TEXT NOT NULL DEFAULT '',
15+ repoOwnerAvatarUrl TEXT NOT NULL DEFAULT '',
16+ repoDescription TEXT,
17+ primaryLanguage TEXT,
18+ repoUrl TEXT NOT NULL DEFAULT '',
1319 seenAt INTEGER NOT NULL
1420 )
1521 """ .trimIndent(),
Original file line number Diff line number Diff line change 1+ package zed.rainxch.core.data.local.db.migrations
2+
3+ import androidx.room.migration.Migration
4+ import androidx.sqlite.db.SupportSQLiteDatabase
5+
6+ val MIGRATION_6_7 =
7+ object : Migration (6 , 7 ) {
8+ override fun migrate (db : SupportSQLiteDatabase ) {
9+ db.execSQL(
10+ """
11+ CREATE TABLE IF NOT EXISTS search_history (
12+ query TEXT NOT NULL PRIMARY KEY,
13+ searchedAt INTEGER NOT NULL
14+ )
15+ """ .trimIndent(),
16+ )
17+ }
18+ }
You can’t perform that action at this time.
0 commit comments