-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
777 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "thoth" | ||
version = "0.12.2" | ||
version = "0.12.3" | ||
authors = ["Javier Arias <[email protected]>", "Ross Higman <[email protected]>"] | ||
edition = "2021" | ||
license = "Apache-2.0" | ||
|
@@ -16,11 +16,11 @@ maintenance = { status = "actively-developed" } | |
members = ["thoth-api", "thoth-api-server", "thoth-app", "thoth-app-server", "thoth-client", "thoth-errors", "thoth-export-server"] | ||
|
||
[dependencies] | ||
thoth-api = { version = "0.12.2", path = "thoth-api", features = ["backend"] } | ||
thoth-api-server = { version = "0.12.2", path = "thoth-api-server" } | ||
thoth-app-server = { version = "0.12.2", path = "thoth-app-server" } | ||
thoth-errors = { version = "0.12.2", path = "thoth-errors" } | ||
thoth-export-server = { version = "0.12.2", path = "thoth-export-server" } | ||
thoth-api = { version = "0.12.3", path = "thoth-api", features = ["backend"] } | ||
thoth-api-server = { version = "0.12.3", path = "thoth-api-server" } | ||
thoth-app-server = { version = "0.12.3", path = "thoth-app-server" } | ||
thoth-errors = { version = "0.12.3", path = "thoth-errors" } | ||
thoth-export-server = { version = "0.12.3", path = "thoth-export-server" } | ||
clap = { version = "4.4.7", features = ["cargo", "env"] } | ||
dialoguer = { version = "0.11.0", features = ["password"] } | ||
dotenv = "0.15.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "thoth-api-server" | ||
version = "0.12.2" | ||
version = "0.12.3" | ||
authors = ["Javier Arias <[email protected]>", "Ross Higman <[email protected]>"] | ||
edition = "2021" | ||
license = "Apache-2.0" | ||
|
@@ -9,8 +9,8 @@ repository = "https://github.com/thoth-pub/thoth" | |
readme = "README.md" | ||
|
||
[dependencies] | ||
thoth-api = { version = "0.12.2", path = "../thoth-api", features = ["backend"] } | ||
thoth-errors = { version = "0.12.2", path = "../thoth-errors" } | ||
thoth-api = { version = "0.12.3", path = "../thoth-api", features = ["backend"] } | ||
thoth-errors = { version = "0.12.3", path = "../thoth-errors" } | ||
actix-web = "4.5.1" | ||
actix-cors = "0.7.0" | ||
actix-identity = "0.7.1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "thoth-api" | ||
version = "0.12.2" | ||
version = "0.12.3" | ||
authors = ["Javier Arias <[email protected]>", "Ross Higman <[email protected]>"] | ||
edition = "2021" | ||
license = "Apache-2.0" | ||
|
@@ -16,7 +16,7 @@ maintenance = { status = "actively-developed" } | |
backend = ["diesel", "diesel-derive-enum", "diesel_migrations", "futures", "actix-web", "jsonwebtoken"] | ||
|
||
[dependencies] | ||
thoth-errors = { version = "0.12.2", path = "../thoth-errors" } | ||
thoth-errors = { version = "0.12.3", path = "../thoth-errors" } | ||
actix-web = { version = "4.5.1", optional = true } | ||
argon2rs = "0.2.5" | ||
isbn2 = "0.4.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
ALTER TABLE series | ||
ALTER COLUMN issn_print SET NOT NULL; | ||
|
||
ALTER TABLE series | ||
ALTER COLUMN issn_digital SET NOT NULL; | ||
|
||
ALTER TABLE work | ||
DROP CONSTRAINT work_active_withdrawn_date_check, | ||
DROP CONSTRAINT work_inactive_no_withdrawn_date_check, | ||
DROP CONSTRAINT work_withdrawn_date_after_publication_date_check, | ||
DROP COLUMN withdrawn_date; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
ALTER TABLE series | ||
ALTER COLUMN issn_print DROP NOT NULL; | ||
|
||
ALTER TABLE series | ||
ALTER COLUMN issn_digital DROP NOT NULL; | ||
|
||
ALTER TABLE work | ||
ADD COLUMN withdrawn_date DATE; | ||
|
||
UPDATE work | ||
SET withdrawn_date = updated_at | ||
WHERE (work_status = 'withdrawn-from-sale' | ||
OR work_status = 'out-of-print'); | ||
|
||
ALTER TABLE work | ||
ADD CONSTRAINT work_active_withdrawn_date_check CHECK | ||
((work_status = 'withdrawn-from-sale' OR work_status = 'out-of-print') | ||
OR (work_status NOT IN ('withdrawn-from-sale', 'out-of-print') AND withdrawn_date IS NULL)), | ||
|
||
ADD CONSTRAINT work_inactive_no_withdrawn_date_check CHECK | ||
(((work_status = 'withdrawn-from-sale' OR work_status = 'out-of-print') AND withdrawn_date IS NOT NULL) | ||
OR (work_status NOT IN ('withdrawn-from-sale', 'out-of-print'))), | ||
|
||
ADD CONSTRAINT work_withdrawn_date_after_publication_date_check CHECK | ||
(withdrawn_date IS NULL OR (publication_date < withdrawn_date)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.