Skip to content

refactor(schema): drop legacy pre-2.7 workout session columns (#1310) - #1314

Draft
pankaj-basnet wants to merge 1 commit into
wger-project:masterfrom
pankaj-basnet:fix/drift--workout-sessions-1310
Draft

refactor(schema): drop legacy pre-2.7 workout session columns (#1310)#1314
pankaj-basnet wants to merge 1 commit into
wger-project:masterfrom
pankaj-basnet:fix/drift--workout-sessions-1310

Conversation

@pankaj-basnet

Copy link
Copy Markdown
Contributor

PR Description

Removes the deprecated pre-2.7 legacy columns (date, time_start, time_end) from the local Drift schema, PowerSync table declarations, and the WorkoutSession model mapping.


Proposed Changes

  1. lib/database/powersync/tables/routines.dart
  • Removed date, timeStart, and timeEnd column getters from WorkoutSessionTable.
  • Updated PowersyncWorkoutSessionTable sync declaration to drop date, time_start, and time_end from the column list.
  1. lib/features/routines/models/session.dart
  • Removed legacy column entries (date, timeStart, timeEnd) from toCompanion().
  1. lib/database/powersync/database.g.dart
  • Regenerated via dart run build_runner build --delete-conflicting-outputs to update generated companions and table definitions.

Related Issue(s)

Please check that the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Set a 100-character limit to avoid white space diffs (run dart format .)

@pankaj-basnet
pankaj-basnet marked this pull request as draft August 12, 2026 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove drift compatibility for workout sessions

1 participant