Fix schema types in migrate script (#143)

This commit is contained in:
Hammad Jutt
2020-10-09 23:50:19 -06:00
committed by GitHub
parent 13d5967f92
commit e6ab0cfe78
2 changed files with 3 additions and 2 deletions

View File

@@ -162,7 +162,7 @@ export const migrateSourceCredAccounts = async (
const resultInsert = await client.UpsertPlayer({
objects: usersToInsert,
onConflict: {
constraint: Player_Constraint.PlayerEthereumAddressKey,
constraint: Player_Constraint.PlayerEthereumAddressUniqueKey,
update_columns: [
Player_Update_Column.ScIdentityId,
Player_Update_Column.Username,

View File

@@ -365,6 +365,7 @@ type BoxProfile {
job: String
location: String
name: String
website: String
}
"""
@@ -1830,7 +1831,7 @@ unique or primary key constraints on table "Player"
"""
enum Player_constraint {
"""unique or primary key constraint"""
Player_ethereum_address_key
Player_ethereum_address_unique_key
"""unique or primary key constraint"""
Player_pkey