Repository navigation
Create the table, and keep the database in aware_gyroscope.sqlite - #3
Merged
Merged
Conversation
The sensor never created its table and had no dbTableName, so without the app creating the table every save failed and nothing was synced. It now creates the table after opening its database and sets dbTableName. The default dbPath was the shared "aware", although the README said "aware_gyroscope". It is now "aware_gyroscope". Rows saved by 1.6.2 or earlier in aware.sqlite and not uploaded yet are moved into the new file with SQLiteEngine.moveTable (core 1.7.1), so they are still uploaded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Requires core 1.7.1. Merge after awareframework/com.awareframework.ios.core#9 is merged and tagged 1.7.1.
Package.swiftasks for corefrom: "1.7.1".dbTableName. Without the app creating the table, every save failed and nothing was synced.initializeTables(), as in the battery sensor).ConfigsetsdbTableName.dbPathwas the shared"aware", although the README says"aware_gyroscope". It is now"aware_gyroscope", like the other sensors (Config.defaultDbPath).aware.sqliteand not uploaded yet are moved into the new file at start-up, withSQLiteEngine.moveTable(_:fromDatabaseAt:). They are still uploaded, and rows already uploaded are not sent again.dbPath.Tests
testSensorCreatesItsTable: creating the sensor is enough to save a row and read it back for sync.testRowsInThePreviousDatabaseMove: rows in the oldaware.sqlitemove toaware_gyroscope.sqlite, and the old table is dropped.🤖 Generated with Claude Code