-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Support credential issuance without data agreement and using dis…
…closure mapping Signed-off-by: George J Padayatti <[email protected]>
- Loading branch information
1 parent
bf52b41
commit 2d9168b
Showing
9 changed files
with
364 additions
and
199 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
"""empty message | ||
Revision ID: 4b55f8ee9ea5 | ||
Revises: 052e160bdd61 | ||
Create Date: 2024-04-30 16:49:03.453431 | ||
""" | ||
from typing import Sequence, Union | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import postgresql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = '4b55f8ee9ea5' | ||
down_revision: Union[str, None] = '052e160bdd61' | ||
branch_labels: Union[str, Sequence[str], None] = None | ||
depends_on: Union[str, Sequence[str], None] = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('issue_credential_record', sa.Column('credential', postgresql.JSON(astext_type=sa.Text()), nullable=True)) | ||
op.add_column('issue_credential_record', sa.Column('disclosureMapping', postgresql.JSON(astext_type=sa.Text()), nullable=True)) | ||
op.alter_column('issue_credential_record', 'dataAgreementId', | ||
existing_type=sa.UUID(), | ||
nullable=True) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column('issue_credential_record', 'dataAgreementId', | ||
existing_type=sa.UUID(), | ||
nullable=False) | ||
op.drop_column('issue_credential_record', 'disclosureMapping') | ||
op.drop_column('issue_credential_record', 'credential') | ||
# ### end Alembic commands ### |
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,34 @@ | ||
"""empty message | ||
Revision ID: 792325ac96d1 | ||
Revises: 4b55f8ee9ea5 | ||
Create Date: 2024-04-30 17:25:32.284977 | ||
""" | ||
from typing import Sequence, Union | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import postgresql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = '792325ac96d1' | ||
down_revision: Union[str, None] = '4b55f8ee9ea5' | ||
branch_labels: Union[str, Sequence[str], None] = None | ||
depends_on: Union[str, Sequence[str], None] = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column('issue_credential_record', 'dataAttributeValues', | ||
existing_type=postgresql.JSON(astext_type=sa.Text()), | ||
nullable=True) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column('issue_credential_record', 'dataAttributeValues', | ||
existing_type=postgresql.JSON(astext_type=sa.Text()), | ||
nullable=False) | ||
# ### end Alembic commands ### |
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.