-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Track app_version and client_type in mapping_sessions table
- Loading branch information
Showing
7 changed files
with
43 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
15 changes: 15 additions & 0 deletions
15
postgres/scripts/v2_to_v3/07_update_mapping_sessions_table.sql
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* This script updates the `mapping_sessions` table by adding the following columns: | ||
* - `app_version`: Stores the version of the client application. | ||
* - `client_type`: Indicates the type of client (currently supporting 'web' and 'mobile'). | ||
* | ||
* Existing entries for `app_version` and `client_type` will be set to an empty string | ||
* to indicate that they can correspond to either web or mobile, as web is already in use. | ||
* | ||
* Related issue: https://github.com/mapswipe/mapswipe/issues/852#issuecomment-2400077760 | ||
*/ | ||
|
||
|
||
ALTER TABLE mapping_sessions | ||
ADD COLUMN app_version varchar, | ||
ADD COLUMN client_type varchar; |