Skip to content

Commit

Permalink
Merge pull request #74 from startersclan/chore/release-3.3.0
Browse files Browse the repository at this point in the history
Chore: Release 3.3.0
  • Loading branch information
leojonathanoh committed Nov 22, 2023
2 parents db066fa + 5e61f43 commit 312fc9d
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The new BF2Statistics 3.0 ASP, currently in public Beta. The GameSpy server to m
## Usage (docker)

```sh
docker run --rm -it -p 80:80 -e DB_HOST=db -e DB_PORT=3306 -e DB_NAME=bf2stats -e DB_USER=root -e DB_PASS=ascent startersclan/asp:3.2.0
docker run --rm -it -p 80:80 -e DB_HOST=db -e DB_PORT=3306 -e DB_NAME=bf2stats -e DB_USER=root -e DB_PASS=ascent startersclan/asp:3.3.0
```

See [this](docs/full-bf2-stack-example) example showing how to deploy [Battlefield 2 1.5 server](https://github.com/startersclan/docker-bf2), [PRMasterserver](https://github.com/startersclan/PRMasterServer) as the master server, and `ASP` as the stats web server, using `docker-compose`.
Expand Down
4 changes: 2 additions & 2 deletions docs/full-bf2-stack-example/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '2.2'
services:
# Battlefield 2 1.5 server with bf2stats 3 python scripts
bf2:
image: startersclan/docker-bf2:v1.5.3153.0-bf2stats-3.2.0
image: startersclan/docker-bf2:v1.5.3153.0-bf2stats-3.3.0
volumes:
- ./config/bf2/mods/bf2/ai/aidefault-custom.ai:/server/bf2/mods/bf2/ai/aidefault.ai:ro # Customize bots
- ./config/bf2/mods/bf2/settings/serversettings-custom.con:/server/bf2/mods/bf2/settings/serversettings.con:ro # Server config
Expand Down Expand Up @@ -125,7 +125,7 @@ services:
# The gamespy ASP. The dashboard is available at https://asp.example.com/ASP
asp:
image: startersclan/asp:3.2.0
image: startersclan/asp:3.3.0
labels:
- "traefik.enable=true"
- "traefik.docker.network=${COMPOSE_PROJECT_NAME?err}_traefik-network"
Expand Down
6 changes: 3 additions & 3 deletions src/ASP/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
* linking of files, Also define ROOT and system paths
*/
define('BF2_ADMIN', true);
define('CODE_VERSION', '3.2.0');
define('CODE_VERSION_DATE', '2021-4-21');
define('DB_EXPECTED_VERSION', '3.2.0');
define('CODE_VERSION', '3.3.0');
define('CODE_VERSION_DATE', '2023-11-22');
define('DB_EXPECTED_VERSION', '3.3.0');
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', __DIR__);
define('SYSTEM_PATH', ROOT . DS . 'system');
Expand Down
1 change: 1 addition & 0 deletions src/ASP/system/sql/data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -308,3 +308,4 @@ INSERT INTO `_version`(`updateid`, `version`) VALUES (30070, '3.0.7');
INSERT INTO `_version`(`updateid`, `version`) VALUES (30080, '3.0.8');
INSERT INTO `_version`(`updateid`, `version`) VALUES (30100, '3.1.0');
INSERT INTO `_version`(`updateid`, `version`) VALUES (30200, '3.2.0');
INSERT INTO `_version`(`updateid`, `version`) VALUES (30300, '3.3.0');
4 changes: 4 additions & 0 deletions src/ASP/system/sql/migrations/down/30200.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--
-- Always delete record from version table!!!
--
DELETE FROM `_version` WHERE updateid = 30300;
11 changes: 9 additions & 2 deletions src/ASP/system/sql/migrations/migrations.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,16 @@
],
"3.2.0" => [
"comment" => "Added timestamp column to the player_unlock table.",
"up" => null,
"up_string" => "",
"up" => "30300",
"up_string" => "3.3.0",
"down" => "30100",
"down_string" => "3.1.0",
],
"3.3.0" => [
"comment" => "Add base game maps to data.sql; Fix Kubra Dam mapinfo redirect",
"up" => null,
"up_string" => "",
"down" => "30200",
"down_string" => "3.2.0",
]
];
4 changes: 4 additions & 0 deletions src/ASP/system/sql/migrations/up/30300.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--
-- Always update version table!!!
--
INSERT INTO `_version`(`updateid`, `version`) VALUES (30300, '3.3.0');

0 comments on commit 312fc9d

Please sign in to comment.