GameVersion Images
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MUGLE |
Fix Released
|
Critical
|
Prageeth Silva |
Bug Description
I just realised that if we are to implement adding a new filed Image for GameVersion, it might not be possible after we do the release on Monday. This is because changing a field in a data persistent object can affect the database and we may loose the data in the process (unless we can port the data).
The solution I can think of is simply have the field already but hide the getter and setter from the client. Once we are ready, we can simply use the getter and setter; this way we have a placeholder for the image in the class structure.
Fortunately this can be easily solved by having the field mapping to a GameFile and when the page is to be displayed with the image, we can simply use the same mechanism to obtain the image.
Does anyone have a better solution, because I just came up with this solution and hasn't spend much time thinking of a proper solution?
Related branches
Changed in mugle: | |
status: | Fix Committed → Fix Released |
I was just going to have a database field of type Blob, to store the images, rather than coupling it to the GameFile idea. What do you think?
I think we should come back to this after we have GameFiles working so we have a clear idea of how to treat blobs.