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).
This commit is contained in:
Tau
2019-10-10 19:59:13 -04:00
parent 3e6b4f4798
commit 30d42bd832
5 changed files with 30 additions and 11 deletions

View File

@@ -57,7 +57,7 @@ create table "idz_car" (
"selector" integer not null,
"field_00" integer not null,
"field_02" integer not null,
"field_04" integer[] not null,
"field_04" text not null,
"field_46" integer not null,
"field_48" integer not null,
"field_4a" integer not null,
@@ -147,7 +147,7 @@ create table "idz_ta_result" (
on delete cascade,
"route_no" smallint not null,
"total_time" float not null,
"section_times" float[] not null,
"section_times" text not null,
"flags" smallint not null,
"grade" smallint not null,
"car_selector" integer not null,
@@ -161,7 +161,7 @@ create table "idz_ta_best" (
on delete cascade,
"route_no" smallint not null,
"total_time" float not null,
"section_times" float[] not null,
"section_times" text not null,
"flags" smallint not null,
"grade" smallint not null, -- TODO enum
"car_selector" integer not null,