-
Notifications
You must be signed in to change notification settings - Fork 4
BDMS-626: Improve validation, schema alignment, and well inventory handling #596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: staging
Are you sure you want to change the base?
Changes from all commits
1e0b253
3b2db6b
6c38157
1d3aa13
4d74d1b
a7e0632
42bae2d
81faed4
5bbff15
6c5d46e
4a4e249
c350555
6302d80
9742c03
86aa582
3072e41
dbe7074
76a450c
ce742fd
ad86bf6
55872b2
8c9ea27
7143ed3
8e583ea
a7bad53
6d2d810
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| """make contact role nullable | ||
|
|
||
| Revision ID: p9c1d2e3f4a5 | ||
| Revises: o8b9c0d1e2f3 | ||
| Create Date: 2026-03-11 10:30:00.000000 | ||
| """ | ||
|
|
||
| from typing import Sequence, Union | ||
|
|
||
| from alembic import op | ||
| import sqlalchemy as sa | ||
|
|
||
| # revision identifiers, used by Alembic. | ||
| revision: str = "p9c1d2e3f4a5" | ||
| down_revision: Union[str, Sequence[str], None] = "o8b9c0d1e2f3" | ||
| branch_labels: Union[str, Sequence[str], None] = None | ||
| depends_on: Union[str, Sequence[str], None] = None | ||
|
|
||
|
|
||
| def upgrade() -> None: | ||
| op.alter_column( | ||
| "contact", "role", existing_type=sa.String(length=100), nullable=True | ||
| ) | ||
|
|
||
|
|
||
| def downgrade() -> None: | ||
| op.alter_column( | ||
| "contact", "role", existing_type=sa.String(length=100), nullable=False | ||
| ) |
jacob-a-brown marked this conversation as resolved.
Show resolved
Hide resolved
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| """make contact type nullable | ||
|
|
||
| Revision ID: q0d1e2f3a4b5 | ||
| Revises: p9c1d2e3f4a5 | ||
| Create Date: 2026-03-11 17:10:00.000000 | ||
| """ | ||
|
|
||
| from typing import Sequence, Union | ||
|
|
||
| from alembic import op | ||
| import sqlalchemy as sa | ||
|
|
||
| # revision identifiers, used by Alembic. | ||
| revision: str = "q0d1e2f3a4b5" | ||
| down_revision: Union[str, Sequence[str], None] = "p9c1d2e3f4a5" | ||
| branch_labels: Union[str, Sequence[str], None] = None | ||
| depends_on: Union[str, Sequence[str], None] = None | ||
|
|
||
|
|
||
| def upgrade() -> None: | ||
| op.alter_column( | ||
| "contact", | ||
| "contact_type", | ||
| existing_type=sa.String(length=100), | ||
| nullable=True, | ||
| ) | ||
|
|
||
|
|
||
| def downgrade() -> None: | ||
| op.alter_column( | ||
| "contact", | ||
| "contact_type", | ||
| existing_type=sa.String(length=100), | ||
| nullable=False, | ||
| ) |
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -143,6 +143,7 @@ class CreateWell(CreateBaseThing, ValidateWell): | |
| is_suitable_for_datalogger: bool | None = None | ||
| is_open: bool | None = None | ||
| well_status: str | None = None | ||
| monitoring_status: str | None = None | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be restricted to |
||
| formation_completion_code: FormationCode | None = None | ||
| nma_formation_zone: str | None = None | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.