mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
Renamed player columns to be consistent snake_case (#262)
This commit is contained in:
@@ -161,7 +161,7 @@
|
||||
foreign_key_constraint_on: enneagram
|
||||
- name: playerType
|
||||
using:
|
||||
foreign_key_constraint_on: playerTypeId
|
||||
foreign_key_constraint_on: player_type_id
|
||||
array_relationships:
|
||||
- name: Accounts
|
||||
using:
|
||||
@@ -211,13 +211,12 @@
|
||||
- enneagram
|
||||
- ethereum_address
|
||||
- id
|
||||
- playerTypeId
|
||||
- player_type_id
|
||||
- rank
|
||||
- role
|
||||
- scIdentityId
|
||||
- sc_identity_id
|
||||
- total_xp
|
||||
- timezone
|
||||
- totalXp
|
||||
- tz
|
||||
- username
|
||||
filter: {}
|
||||
- role: public
|
||||
@@ -229,9 +228,8 @@
|
||||
- id
|
||||
- rank
|
||||
- role
|
||||
- total_xp
|
||||
- timezone
|
||||
- totalXp
|
||||
- tz
|
||||
- username
|
||||
filter: {}
|
||||
update_permissions:
|
||||
@@ -240,10 +238,9 @@
|
||||
columns:
|
||||
- availability_hours
|
||||
- enneagram
|
||||
- playerTypeId
|
||||
- player_type_id
|
||||
- role
|
||||
- timezone
|
||||
- tz
|
||||
- username
|
||||
filter:
|
||||
id:
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE "public"."player" ADD COLUMN "timezone" int4;
|
||||
ALTER TABLE "public"."player" ALTER COLUMN "timezone" DROP NOT NULL;
|
||||
@@ -0,0 +1 @@
|
||||
ALTER TABLE "public"."player" DROP COLUMN "timezone" CASCADE;
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
alter table "public"."player" rename column "timezone" to "tz";
|
||||
|
||||
alter table "public"."player" rename column "player_type_id" to "playerTypeId";
|
||||
|
||||
alter table "public"."player" rename column "sc_identity_id" to "scIdentityId";
|
||||
|
||||
alter table "public"."player" rename column "total_xp" to "totalXp";
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
alter table "public"."player" rename column "totalXp" to "total_xp";
|
||||
|
||||
alter table "public"."player" rename column "scIdentityId" to "sc_identity_id";
|
||||
|
||||
alter table "public"."player" rename column "playerTypeId" to "player_type_id";
|
||||
|
||||
alter table "public"."player" rename column "tz" to "timezone";
|
||||
Reference in New Issue
Block a user