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.
This commit is contained in:
+1
-3
@@ -12,7 +12,6 @@ create table "idz"."profile" (
|
||||
references "aime"."player"("id")
|
||||
on delete cascade,
|
||||
-- TODO shop_id
|
||||
"ext_id" integer not null,
|
||||
"name" text not null,
|
||||
"lv" smallint not null,
|
||||
"exp" integer not null,
|
||||
@@ -21,8 +20,7 @@ create table "idz"."profile" (
|
||||
"mileage" integer not null,
|
||||
"register_time" timestamp not null,
|
||||
"access_time" timestamp not null,
|
||||
constraint "profile_player_uq" unique ("player_id"),
|
||||
constraint "profile_ext_id_uq" unique ("ext_id")
|
||||
constraint "profile_player_uq" unique ("player_id")
|
||||
);
|
||||
|
||||
create table "idz"."chara" (
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
create table "meta" ("schemaver" integer not null);
|
||||
insert into "meta" values (1);
|
||||
insert into "meta" values (2);
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
alter table "idz"."profile" drop column "ext_id";
|
||||
|
||||
update "meta" set "schemaver" = 1;
|
||||
Reference in New Issue
Block a user