Skip to content

Commit

Permalink
merge in staging.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-labbate committed May 16, 2024
1 parent c4be30c commit 4455c2b
Show file tree
Hide file tree
Showing 47 changed files with 1,875 additions and 1,507 deletions.
35 changes: 35 additions & 0 deletions alembic/versions/a5fbdcd0e719_add_gspc_completions_table.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
"""add gspc_completions table
Revision ID: a5fbdcd0e719
Revises: 51b251b1ec2a
Create Date: 2024-05-08 10:43:09.569708
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql


# revision identifiers, used by Alembic.
revision = 'a5fbdcd0e719'
down_revision = '51b251b1ec2a'
branch_labels = None
depends_on = None


def upgrade() -> None:
op.create_table(
'gspc_completions',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('user_id', sa.Integer(), nullable=False),
sa.Column('passed', sa.Boolean(), nullable=False),
sa.Column('certification_expiration_date', sa.Date, nullable=False),
sa.Column('submit_ts', sa.DateTime(), server_default=sa.text('now()'), nullable=False),
sa.Column('responses', postgresql.JSONB(astext_type=sa.Text()), nullable=False),
sa.ForeignKeyConstraint(['user_id'], ['users.id'], ),
sa.PrimaryKeyConstraint('id')
)


def downgrade() -> None:
op.drop_table('gspc_completions')
Binary file added data/blank_certificates/c_gspc.pdf
Binary file not shown.
5 changes: 5 additions & 0 deletions training-front-end/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cSpell.words": [
"Gspc"
]
}
Loading

0 comments on commit 4455c2b

Please sign in to comment.