22 Commits
Author SHA1 Message Date
Tau 0d8d5845c9 schema: Fix M0011 for newly-created databases 2019-12-09 23:06:20 -05:00
07bea96aed831abce88a9591d3ff86af19babd79 d81b763d9b chuni: save and load user course result 2019-11-28 11:19:39 -05:00
Matt Bilker 1c5726be4c chunithm: Save and load user duel list 2019-11-28 07:04:33 +00:00
85be42b2ce67a8e34b32793360824b056c0c2444 6da5abcefc IDZ: Add support for player auras 2019-11-27 02:22:03 +00:00
Tau d1d63e1ef9 chunithm: Initial implementation code drop
No cleaner development history than this exists. It's difficult to
methodically design something when you don't yet know what it is
you're designing.
2019-11-06 17:29:07 -05:00
Tau b096a79f95 Simplify aime_player schema 2019-11-06 17:29:07 -05:00
Tau 6d91659b24 Add automated schema management 2019-11-06 17:28:31 -05:00
Tau 072d70b42a Migrate to SQLite3
We'll keep the door open for side-by-side support of Postgres in
the background, but due to SQLite's type system quirks we cannot
use the same DDL for both databases, so we would have to maintain
two sets of DDL (schema init and schema migration scripts) at once.

Interested future contributors can shoulder this maintenance burden
if they so choose.
2019-11-06 17:28:30 -05:00
Tau 30d42bd832 Store array colums as CSV text
This is in preparation for a transition to SQLite, which sadly does
not support array-valued columns (or indeed have much of a type
system in general).
2019-11-06 17:28:30 -05:00
Tau 6ab2112ea9 Stop using SQL namespaces ("schemas")
This is in preparation for a transition to SQLite. SQLite does have
a similar concept called "attached databases", but it's kind of a
pain to deal with if you're casually browsing a database from the
`sqlite3` CLI so we'll just use some slightly uglier explicitly
namespaced table name identifiers instead.
2019-11-06 17:28:30 -05:00
Tau a5256c97d3 Fix SQL column capitalization 2019-11-06 17:28:30 -05:00
Tau d1c3051a5e idz: Add initial team tables 2019-11-06 17:28:30 -05:00
Tau c2b0bcabc4 idz: Remove profile ext id
Turns out (while researching team creation) the profile ext id
is just the aime id. After creating a team a profile discovery
request is immediately issued with the "profile id" in the field
that holds the aime id during initial profile load.
2019-11-06 17:28:30 -05:00
Tau 1aaae51eab Add ID generation sprocs for manual db interventions 2019-11-06 17:28:30 -05:00
Tau f08c47306d wip fix settings pack width 2019-11-06 17:28:30 -05:00
Tau d0671f84d9 wip sql syntax error 2019-11-06 17:28:30 -05:00
Tau e18c2d44c5 wip augment TA stored data 2019-11-06 17:28:30 -05:00
Tau 1a5290a461 wip fixes 2019-11-06 17:28:30 -05:00
Tau 968e98fbb4 fixup sql 2019-11-06 17:28:30 -05:00
Tau f3256df06d Add initial IDZero SQL schema 2019-11-06 17:28:30 -05:00
Tau 648a4b0797 Add initial core Aime schema 2019-11-06 17:28:30 -05:00
Tau a85ed40d43 Add db metadata "schema" 2019-11-06 17:28:30 -05:00