get5loader
get5loader copied to clipboard
[API/DB] Use delimitted string insted of pickled Py array for team auths on DB
https://github.com/splewis/get5-web/issues/175 I need to create migration files and support back-compatiblity
I've added new column steamids on team table.
this should be comma-separeted strings like this :
"76561198192393190,76561198072054549,76561198261049877"
API should try to find steamids first,and if its empty(NULL), try to find auths which is old one.
New team registration and edit should push both of auths and steamids for back compatibility.
Supported "steamids" writing. "steamids" READING will implemented more late stable version(to hold compatibility).
Basically using arrays with MySQL is not good design. So I probably need to think about other DB system such as Mongo.
...or, I can add new table like "player" and let it contain ID(pk),steamid,teamid information so it won't be array anymore
Refactor table with non-get5-compatible table schema.