pachli-android/core/database
Nik Clayton 0fe84f1611
refactor: Use Date type for scheduled post date / times (#1032)
Previous code accepted the `scheduledAt` value as a String, and kept it
as a String (including when serialising as part of a draft). Then it was
converted to an actual Date for display.

Refactor to keep it as a Date for as long as possible. Moshi decodes
Dates correctly over the network, and the database is configured to
serialise Dates as Longs.

This necessitates two migration steps to preserve any existing
`scheduledAt` values for drafts. The first step adds a new column to
store the date as a Long and copies over existing data. The second step
replaces the old column with the new column.
2024-10-20 16:29:32 +02:00
..
schemas/app.pachli.core.database.AppDatabase refactor: Use Date type for scheduled post date / times (#1032) 2024-10-20 16:29:32 +02:00
src refactor: Use Date type for scheduled post date / times (#1032) 2024-10-20 16:29:32 +02:00
build.gradle.kts refactor: Remove TabData type (#576) 2024-03-30 23:27:25 +01:00
lint-baseline.xml refactor: Start creating core modules (#286) 2023-12-04 16:58:36 +01:00