Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
"ledger/reporting_ledger.sql",
"ledger/reporting_ledger_account_generations.sql",
"ledger/reporting_ledger_obligation_currency.sql",
"ledger/reporting_ledger_data_through_precision.sql",
"ledger/reporting_ledger_reconciliation.sql",
"ledger/reporting_notification_outbox.sql",
"ledger/reporting_webhook_activity.sql",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
migration ``0002``). Shipped by adcp-reporting-storage 0.2.0b1 through 0.2.0b4.
* **3** — ``media_buy_scope`` on configurations (reporting scope
``all_media_buys``; schema migration ``0009``). Shipped by
adcp-reporting-storage 0.2.0b5 and later.
adcp-reporting-storage 0.2.0b5 through 0.2.0b9.
* **4** — ``data_through_precision`` on revisions (schema migration ``0011``). Shipped by
adcp-reporting-storage 0.2.0b10 and later.

:func:`require_adcp_contract` runs when a PostgreSQL ledger store is built, so
an incompatible pair fails at startup with the pair named and the fix spelled
Expand All @@ -30,11 +32,11 @@
__all__ = ["STORAGE_CONTRACT", "adcp_storage_contract", "require_adcp_contract"]

#: The reporting storage contract this distribution's DDL and stores implement.
STORAGE_CONTRACT = 3
STORAGE_CONTRACT = 4
#: The first adcp release that reads the ledger with :data:`STORAGE_CONTRACT`.
_FIRST_ADCP = "10.0.0b24"
_FIRST_ADCP = "10.0.0"
#: The last adcp-reporting-storage release of each earlier contract.
_LAST_STORAGE = {1: "0.2.0b0", 2: "0.2.0b4"}
_LAST_STORAGE = {1: "0.2.0b0", 2: "0.2.0b4", 3: "0.2.0b9"}


def adcp_storage_contract() -> int:
Expand Down
Loading