-
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.
- Loading branch information
Showing
5 changed files
with
110 additions
and
7 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
alembic/versions/8186365a22ab_add_openai_request_data_to_summary.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,34 @@ | ||
"""Add openai request data to summary | ||
Revision ID: 8186365a22ab | ||
Revises: 0712891cc70a | ||
Create Date: 2024-09-07 09:58:48.662217 | ||
""" | ||
import sqlalchemy as sa | ||
|
||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "8186365a22ab" | ||
down_revision = "0712891cc70a" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column("summary", sa.Column("openai_id", sa.String(), nullable=True)) | ||
op.add_column("summary", sa.Column("openai_model", sa.String(), nullable=True)) | ||
op.add_column("summary", sa.Column("completion_tokens", sa.Integer(), nullable=True)) | ||
op.add_column("summary", sa.Column("prompt_tokens", sa.Integer(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column("summary", "prompt_tokens") | ||
op.drop_column("summary", "completion_tokens") | ||
op.drop_column("summary", "openai_model") | ||
op.drop_column("summary", "openai_id") | ||
# ### end Alembic commands ### |
28 changes: 28 additions & 0 deletions
28
alembic/versions/aad719a7e141_add_total_seconds_to_transcript_model.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,28 @@ | ||
"""Add total_seconds to Transcript model | ||
Revision ID: aad719a7e141 | ||
Revises: 8186365a22ab | ||
Create Date: 2024-09-07 10:14:33.233855 | ||
""" | ||
import sqlalchemy as sa | ||
|
||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "aad719a7e141" | ||
down_revision = "8186365a22ab" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column("transcript", sa.Column("total_seconds", sa.Integer(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column("transcript", "total_seconds") | ||
# ### 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