-
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.
Signed-off-by: George J Padayatti <[email protected]>
- Loading branch information
1 parent
a1460f1
commit 34211be
Showing
17 changed files
with
965 additions
and
17 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,32 @@ | ||
"""empty message | ||
Revision ID: 3be60cbb77ee | ||
Revises: f2622afe5eae | ||
Create Date: 2024-05-01 00:34:20.174467 | ||
""" | ||
from typing import Sequence, Union | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = '3be60cbb77ee' | ||
down_revision: Union[str, None] = 'f2622afe5eae' | ||
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('verification_record', sa.Column('verified', sa.Boolean(), nullable=True)) | ||
op.create_unique_constraint(None, 'verification_record', ['id']) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_constraint(None, 'verification_record', type_='unique') | ||
op.drop_column('verification_record', 'verified') | ||
# ### 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,44 @@ | ||
"""empty message | ||
Revision ID: f2622afe5eae | ||
Revises: 792325ac96d1 | ||
Create Date: 2024-05-01 00:31:33.929153 | ||
""" | ||
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 = 'f2622afe5eae' | ||
down_revision: Union[str, None] = '792325ac96d1' | ||
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.create_table('verification_record', | ||
sa.Column('id', sa.UUID(), nullable=False), | ||
sa.Column('organisationId', sa.UUID(), nullable=False), | ||
sa.Column('vp_token_request_state', sa.String(), nullable=True), | ||
sa.Column('vp_token_request', sa.String(), nullable=True), | ||
sa.Column('vp_token_qr_code', sa.String(), nullable=True), | ||
sa.Column('vp_token_response', sa.String(), nullable=True), | ||
sa.Column('presentationSubmission', postgresql.JSON(astext_type=sa.Text()), nullable=True), | ||
sa.Column('status', sa.String(), nullable=False), | ||
sa.Column('createdAt', sa.DateTime(), nullable=True), | ||
sa.Column('updatedAt', sa.DateTime(), nullable=True), | ||
sa.ForeignKeyConstraint(['organisationId'], ['organisation.id'], ), | ||
sa.PrimaryKeyConstraint('id'), | ||
sa.UniqueConstraint('id') | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_table('verification_record') | ||
# ### 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
Oops, something went wrong.