From fdfc5d4894fe6a2e30fabebe40b09942adad0798 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Sat, 28 Feb 2026 18:17:59 -0500 Subject: [PATCH] Altered powerball table structure --- .../677501c83fe5_added_powerball_model.py | 10 +-- .../7d6d973351b7_altered_column_names.py | 80 ------------------ predictor.db | Bin 20480 -> 0 bytes 3 files changed, 5 insertions(+), 85 deletions(-) delete mode 100644 migrations/versions/7d6d973351b7_altered_column_names.py delete mode 100644 predictor.db diff --git a/migrations/versions/677501c83fe5_added_powerball_model.py b/migrations/versions/677501c83fe5_added_powerball_model.py index 46ccfe0..ab3bb4d 100644 --- a/migrations/versions/677501c83fe5_added_powerball_model.py +++ b/migrations/versions/677501c83fe5_added_powerball_model.py @@ -23,11 +23,11 @@ def upgrade() -> None: # ### commands auto generated by Alembic - please adjust! ### op.create_table('powerball_draws', sa.Column('draw_date', sa.DateTime(), nullable=False), - sa.Column('white_ball1', sa.Integer(), nullable=True), - sa.Column('white_ball2', sa.Integer(), nullable=True), - sa.Column('white_ball3', sa.Integer(), nullable=True), - sa.Column('white_ball4', sa.Integer(), nullable=True), - sa.Column('white_ball5', sa.Integer(), nullable=True), + sa.Column('main_ball1', sa.Integer(), nullable=True), + sa.Column('main_ball2', sa.Integer(), nullable=True), + sa.Column('main_ball3', sa.Integer(), nullable=True), + sa.Column('main_ball4', sa.Integer(), nullable=True), + sa.Column('main_ball5', sa.Integer(), nullable=True), sa.Column('powerball', sa.Integer(), nullable=True), sa.Column('power_play', sa.Integer(), nullable=True), sa.PrimaryKeyConstraint('draw_date') diff --git a/migrations/versions/7d6d973351b7_altered_column_names.py b/migrations/versions/7d6d973351b7_altered_column_names.py deleted file mode 100644 index aaa2a9a..0000000 --- a/migrations/versions/7d6d973351b7_altered_column_names.py +++ /dev/null @@ -1,80 +0,0 @@ -"""Altered column names - -Revision ID: 7d6d973351b7 -Revises: 677501c83fe5 -Create Date: 2026-02-27 12:40:04.831887 - -""" -from typing import Sequence, Union - -from alembic import op -import sqlalchemy as sa - - -# revision identifiers, used by Alembic. -revision: str = '7d6d973351b7' -down_revision: Union[str, Sequence[str], None] = '677501c83fe5' -branch_labels: Union[str, Sequence[str], None] = None -depends_on: Union[str, Sequence[str], None] = None - - -def upgrade() -> None: - """Upgrade schema.""" - # ### commands auto generated by Alembic - please adjust! ### - op.alter_column('powerball_draws', 'draw_date', - existing_type=sa.DATETIME(), - type_=sa.Date(), - existing_nullable=False) - op.alter_column('powerball_draws', 'main_ball1', - existing_type=sa.INTEGER(), - nullable=False) - op.alter_column('powerball_draws', 'main_ball2', - existing_type=sa.INTEGER(), - nullable=False) - op.alter_column('powerball_draws', 'main_ball3', - existing_type=sa.INTEGER(), - nullable=False) - op.alter_column('powerball_draws', 'main_ball4', - existing_type=sa.INTEGER(), - nullable=False) - op.alter_column('powerball_draws', 'main_ball5', - existing_type=sa.INTEGER(), - nullable=False) - op.alter_column('powerball_draws', 'powerball', - existing_type=sa.INTEGER(), - nullable=False) - op.alter_column('powerball_draws', 'power_play', - existing_type=sa.INTEGER(), - nullable=False) - # ### end Alembic commands ### - - -def downgrade() -> None: - """Downgrade schema.""" - # ### commands auto generated by Alembic - please adjust! ### - op.alter_column('powerball_draws', 'power_play', - existing_type=sa.INTEGER(), - nullable=True) - op.alter_column('powerball_draws', 'powerball', - existing_type=sa.INTEGER(), - nullable=True) - op.alter_column('powerball_draws', 'main_ball5', - existing_type=sa.INTEGER(), - nullable=True) - op.alter_column('powerball_draws', 'main_ball4', - existing_type=sa.INTEGER(), - nullable=True) - op.alter_column('powerball_draws', 'main_ball3', - existing_type=sa.INTEGER(), - nullable=True) - op.alter_column('powerball_draws', 'main_ball2', - existing_type=sa.INTEGER(), - nullable=True) - op.alter_column('powerball_draws', 'main_ball1', - existing_type=sa.INTEGER(), - nullable=True) - op.alter_column('powerball_draws', 'draw_date', - existing_type=sa.Date(), - type_=sa.DATETIME(), - existing_nullable=False) - # ### end Alembic commands ### diff --git a/predictor.db b/predictor.db deleted file mode 100644 index bd9427970fbb91131207fa8a58136023aeb1148a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 20480 zcmeI%!A{#S7zc2>En|rkvRwv3I~Zw|T6IiGL&q*i%erW*R>}z3Bu@SIv@0VO0@9j2&vCj^oVNZ;iMII4K$!o?4 zA*!qkvfh+M*(ls}4Gr;`qC!|0V_Pg6Nw5L%Ue|dE3c|LjVF0fB*y_009U< z00Izzz)ax$X?}6JQla0Xv1o_>AUg4fZ4rjNI}|6QOt(;X9ouu5XTNDWEOU^RR3*NM zcZHn)y_M&Ajctduc0AVl)NDRys?rldpU0z{tkLqEcaEEiR_8{oxzUZe(ONP(d%k~y zd=QG$Wb~uk*tXq$_QBa_rCAbXwY*h$u)JHLB4A9d!7yKO6;7Khw>nbTbEI-RsME|ER}4+iv~6?Ut-+IYnIGY3+Hg zEqPgH1U~rEVW~tDC{C~Rse@XO95J3O}5P$##AOHafKmY;|fB*y_aF+#Esj^0=rD~YQx=~#>tjABD v6*pFL)Aj!=qF>$R4Dsv`fB*y_009U<00Izz00bZa0SKf8wEUX#_cy>FM3>!5