Skip to content

Commit

Permalink
Adapt to rating become a database column (fixes #331)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brutus5000 committed Aug 24, 2019
1 parent a081109 commit 29ea3dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ before_install:
install:
- git clone https://github.com/FAForever/faf-stack.git faf-stack
&& pushd faf-stack
&& git checkout 03b2fd4
&& git checkout 33a24b3
&& cp -r config.template config
&& ./scripts/init-db.sh
&& popd
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/faforever/api/data/domain/Rating.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


import lombok.Setter;
import org.hibernate.annotations.Formula;

import javax.persistence.Column;
import javax.persistence.FetchType;
Expand Down Expand Up @@ -46,7 +45,7 @@ public Player getPlayer() {
return player;
}

@Formula("mean - 3 * deviation")
@Column(name = "rating", updatable = false)
public double getRating() {
return rating;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ faf-api:
challonge:
key: ${CHALLONGE_KEY:}
database:
schema-version: ${DATABASE_SCHEMA_VERSION:71}
schema-version: ${DATABASE_SCHEMA_VERSION:72}
mautic:
base-url: ${MAUTIC_BASE_URL:false}
client-id: ${MAUTIC_CLIENT_ID:false}
Expand Down

0 comments on commit 29ea3dd

Please sign in to comment.