-
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.
Lookup missing BIC when returning bank account activities
- Loading branch information
1 parent
865ebcf
commit 4fe52b1
Showing
7 changed files
with
81 additions
and
4 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
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
41 changes: 41 additions & 0 deletions
41
pycroft/model/alembic/versions/2d7e4df39a3b_add_account_for_non_attributable_.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,41 @@ | ||
"""add account for non-attributable transfers to config | ||
Revision ID: 2d7e4df39a3b | ||
Revises: bc0e0dd480d4 | ||
Create Date: 2024-06-06 20:21:16.972195 | ||
""" | ||
|
||
import sqlalchemy as sa | ||
from alembic import op | ||
from sqlalchemy.dialects import postgresql | ||
Check failure on line 11 in pycroft/model/alembic/versions/2d7e4df39a3b_add_account_for_non_attributable_.py GitHub Actions / python-lintRuff (F401)
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = "2d7e4df39a3b" | ||
down_revision = "bc0e0dd480d4" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column( | ||
"config", | ||
sa.Column( | ||
"non_attributable_transactions_account_id", | ||
sa.Integer(), | ||
nullable=False, | ||
server_default="10", | ||
), | ||
) | ||
op.create_foreign_key( | ||
None, "config", "account", ["non_attributable_transactions_account_id"], ["id"] | ||
) | ||
|
||
|
||
def downgrade(): | ||
op.drop_constraint(None, "config", type_="foreignkey") | ||
op.drop_column("config", "non_attributable_transactions_account_id") | ||
op.create_index( | ||
"bank_account_activity_imported_at", "bank_account_activity", ["imported_at"], unique=False | ||
) |
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