-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from GSA-TTS/domain-language-update
Update code to reflect domain language
- Loading branch information
Showing
19 changed files
with
289 additions
and
243 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
alembic/versions/342dce4f5753_rename_data_providers_to_data_producers.py
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,32 @@ | ||
"""Rename data_providers to data_producers and rename column in data_submissions | ||
Revision ID: 342dce4f5753 | ||
Revises: 851709d3a162 | ||
Create Date: 2024-02-14 08:40:16.897824 | ||
""" | ||
from typing import Sequence, Union | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = "342dce4f5753" | ||
down_revision: Union[str, None] = "851709d3a162" | ||
branch_labels: Union[str, Sequence[str], None] = None | ||
depends_on: Union[str, Sequence[str], None] = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.rename_table("data_providers", "data_producers") | ||
op.alter_column( | ||
"data_submissions", "data_provider_id", new_column_name="data_producer_id" | ||
) | ||
|
||
|
||
def downgrade() -> None: | ||
op.alter_column( | ||
"data_submissions", "data_producer_id", new_column_name="data_provider_id" | ||
) | ||
op.rename_table("data_producers", "data_providers") |
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 |
---|---|---|
|
@@ -26,5 +26,5 @@ def upgrade(): | |
) | ||
|
||
|
||
def add_column(): | ||
def downgrade(): | ||
op.drop_column("data_submissions", "report") |
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,14 @@ | ||
# NAD Collaboration Hub Terminology | ||
|
||
## Acronyms | ||
|
||
- GIS: geographic information system | ||
- NAD: National Address Database | ||
|
||
## Key Concepts | ||
|
||
- Data Producer: a representative from a state, local, or tribal government | ||
who wants to submit address data for inclusion in the NAD. | ||
|
||
- Data Submission: a GIS dataset that a Data Producer submits for inclusion | ||
in the NAD. |
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
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
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
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.