Skip to content
This repository was archived by the owner on Oct 8, 2023. It is now read-only.

Commit 06d2cbd

Browse files
author
sailor
committed
Merge branch 'master' into stable
2 parents 07063c3 + 31604e3 commit 06d2cbd

File tree

7 files changed

+16
-12
lines changed

7 files changed

+16
-12
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.6.7] 2020-01-19
10+
### Fixed
11+
- Migrations on mysql
12+
913
## [0.6.6] 2020-01-19
1014
### Added
1115
- Simple sync of votes, may drop some votes

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description = "Radio-Browser Server with REST API"
44
license = "agpl-3.0"
55
name = "radiobrowser-api-rust"
66
readme = "README.md"
7-
version = "0.6.6"
7+
version = "0.6.7"
88
edition = "2018"
99

1010
[dependencies]

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ docker stack deploy -c docker-compose-traefik.yml rb
8080
# download distribution
8181
mkdir -p radiobrowser
8282
cd radiobrowser
83-
wget https://github.com/segler-alex/radiobrowser-api-rust/releases/download/0.6.6/radiobrowser-dist.tar.gz
83+
wget https://github.com/segler-alex/radiobrowser-api-rust/releases/download/0.6.7/radiobrowser-dist.tar.gz
8484
tar -zxf radiobrowser-dist.tar.gz
8585

8686
# config database
@@ -101,9 +101,9 @@ sudo systemctl start radiobrowser
101101
* create database and database user
102102

103103
```bash
104-
wget https://github.com/segler-alex/radiobrowser-api-rust/releases/download/0.6.6/radiobrowser-api-rust_0.6.6_amd64.deb
104+
wget https://github.com/segler-alex/radiobrowser-api-rust/releases/download/0.6.7/radiobrowser-api-rust_0.6.7_amd64.deb
105105
sudo apt install default-mysql-server
106-
sudo dpkg -i radiobrowser-api-rust_0.6.6_amd64.deb
106+
sudo dpkg -i radiobrowser-api-rust_0.6.7_amd64.deb
107107
cat /usr/share/radiobrowser/init.sql | mysql
108108
```
109109

@@ -193,7 +193,7 @@ cd radiobrowser-api-rust
193193
# checkout stable
194194
git checkout stable
195195
# deploy, change email adress, for ssl with certbot
196-
ansible-playbook -e "email=test@example.com" -e "version=0.6.6" -e "ansible_python_interpreter=auto" -i "test.example.com,test2.example.com" ansible/playbook.yml
196+
ansible-playbook -e "email=test@example.com" -e "version=0.6.7" -e "ansible_python_interpreter=auto" -i "test.example.com,test2.example.com" ansible/playbook.yml
197197
```
198198

199199
## Building

docker-compose-traefik.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: "3.2"
22
services:
33
api:
44
build: ./
5-
image: segleralex/radiobrowser-api-rust:0.6.6
5+
image: segleralex/radiobrowser-api-rust:0.6.7
66
labels:
77
- "traefik.enable=true"
88
- "traefik.http.routers.api.rule=Host(`${SOURCE}`)"

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: "3.0"
22
services:
33
api:
44
build: ./
5-
image: segleralex/radiobrowser-api-rust:0.6.6
5+
image: segleralex/radiobrowser-api-rust:0.6.7
66
deploy:
77
replicas: 1
88
networks:

src/db/db_mysql/migrations.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,20 +347,20 @@ r#"ALTER TABLE StationCheckHistory MODIFY COLUMN InsertTime DATETIME NOT NULL;"#
347347
r#"ALTER TABLE StationCheckHistory MODIFY COLUMN InsertTime TIMESTAMP NOT NULL;"#);
348348

349349
migrations.add_migration("20200119_121000_Drop_FK_StationCheckHistory_Station",
350-
r#"ALTER TABLE StationCheckHistory DROP CONSTRAINT FK_StationCheckHistory_Station;"#,
350+
r#"ALTER TABLE StationCheckHistory DROP FOREIGN KEY FK_StationCheckHistory_Station;"#,
351351
r#"ALTER TABLE StationCheckHistory ADD CONSTRAINT FK_StationCheckHistory_Station FOREIGN KEY(StationUuid) REFERENCES Station(StationUuid);"#);
352352

353353
migrations.add_migration("20200119_121100_Add_FK_StationCheckHistory_Station",
354354
r#"ALTER TABLE StationCheckHistory ADD CONSTRAINT FK_StationCheckHistory_Station FOREIGN KEY(StationUuid) REFERENCES Station(StationUuid) ON DELETE CASCADE;"#,
355-
r#"ALTER TABLE StationCheckHistory DROP CONSTRAINT FK_StationCheckHistory_Station;"#);
355+
r#"ALTER TABLE StationCheckHistory DROP FOREIGN KEY FK_StationCheckHistory_Station;"#);
356356

357357
migrations.add_migration("20200119_121200_Drop_FK_StationClick_Station",
358-
r#"ALTER TABLE StationClick DROP CONSTRAINT FK_Station;"#,
358+
r#"ALTER TABLE StationClick DROP FOREIGN KEY FK_Station;"#,
359359
r#"ALTER TABLE StationClick ADD CONSTRAINT FK_Station FOREIGN KEY(StationUuid) REFERENCES Station(StationUuid);"#);
360360

361361
migrations.add_migration("20200119_121300_Add_FK_StationClick_Station",
362362
r#"ALTER TABLE StationClick ADD CONSTRAINT FK_StationClick_Station FOREIGN KEY(StationUuid) REFERENCES Station(StationUuid) ON DELETE CASCADE;"#,
363-
r#"ALTER TABLE StationClick DROP CONSTRAINT FK_StationClick_Station;"#);
363+
r#"ALTER TABLE StationClick DROP FOREIGN KEY FK_StationClick_Station;"#);
364364

365365
Ok(migrations)
366366
}

0 commit comments

Comments
 (0)