-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hotfix: model name and os version collect
- Loading branch information
Showing
3 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
10 changes: 9 additions & 1 deletion
10
src/main/java/ac/knu/likeknu/controller/dto/device/request/DeviceRegistrationRequest.java
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 |
---|---|---|
@@ -1,8 +1,16 @@ | ||
package ac.knu.likeknu.controller.dto.device.request; | ||
|
||
import ac.knu.likeknu.domain.constants.Campus; | ||
import com.fasterxml.jackson.annotation.JsonAlias; | ||
|
||
public record DeviceRegistrationRequest( | ||
String deviceId, String userAgent, Campus campus, String themeColor, String favoriteCafeteria | ||
String deviceId, | ||
@JsonAlias("platform") | ||
String userAgent, | ||
String modelName, | ||
String osVersion, | ||
Campus campus, | ||
String themeColor, | ||
String favoriteCafeteria | ||
) { | ||
} |
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
5 changes: 5 additions & 0 deletions
5
src/main/resources/db/migration/mysql/V9__add_device_info_columns.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,5 @@ | ||
ALTER TABLE device | ||
ADD COLUMN model_name VARCHAR(32) AFTER platform; | ||
|
||
ALTER TABLE device | ||
ADD COLUMN os_version VARCHAR(12) AFTER model_name; |