Renamed player columns to be consistent snake_case (#262)

This commit is contained in:
Alec LaLonde
2021-01-06 22:08:58 -07:00
committed by GitHub
parent 1027f019e5
commit 5534ff1a45
17 changed files with 119 additions and 134 deletions

View File

@@ -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:

View File

@@ -0,0 +1,2 @@
ALTER TABLE "public"."player" ADD COLUMN "timezone" int4;
ALTER TABLE "public"."player" ALTER COLUMN "timezone" DROP NOT NULL;

View File

@@ -0,0 +1 @@
ALTER TABLE "public"."player" DROP COLUMN "timezone" CASCADE;

View File

@@ -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";

View File

@@ -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";