-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
přidána infrastruktura pro přepisování udajů dárce
- přidána tabulka donors_override - přidán formulář pro obsluhu tabulky Záznamy z tabulky donors_override se zatím neprojeví v donors_overview.
- Loading branch information
Showing
5 changed files
with
186 additions
and
4 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
migrations/versions/60a681c463a2_create_donors_override.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,33 @@ | ||
"""create_donors_override | ||
Revision ID: 60a681c463a2 | ||
Revises: 6fe71f4f1aba | ||
Create Date: 2021-05-25 12:50:58.779359 | ||
""" | ||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "60a681c463a2" | ||
down_revision = "6fe71f4f1aba" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.create_table( | ||
"donors_override", | ||
sa.Column("rodne_cislo", sa.CHAR(length=10), nullable=False), | ||
sa.Column("first_name", sa.String(), nullable=True), | ||
sa.Column("last_name", sa.String(), nullable=True), | ||
sa.Column("address", sa.String(), nullable=True), | ||
sa.Column("city", sa.String(), nullable=True), | ||
sa.Column("postal_code", sa.CHAR(length=5), nullable=True), | ||
sa.Column("kod_pojistovny", sa.CHAR(length=3), nullable=True), | ||
sa.PrimaryKeyConstraint("rodne_cislo"), | ||
) | ||
|
||
|
||
def downgrade(): | ||
op.drop_table("donors_override") |
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