Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #479 from IceWreck/psql-api
Rewrite the copr-builds part of the API using PostgresSQL instead of Redis Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
- Loading branch information
Showing
5 changed files
with
225 additions
and
16 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
alembic/versions/61d0f32eda4b_added_project_name_and_git_fields.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,32 @@ | ||
"""added project name and git fields | ||
Revision ID: 61d0f32eda4b | ||
Revises: 70dcb6140e11 | ||
Create Date: 2020-03-10 19:11:36.729552 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = "61d0f32eda4b" | ||
down_revision = "70dcb6140e11" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column("git_projects", sa.Column("https_url", sa.String(), nullable=True)) | ||
op.add_column("copr_builds", sa.Column("project_name", sa.String(), nullable=True)) | ||
op.add_column("copr_builds", sa.Column("owner", sa.String(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column("copr_builds", "owner") | ||
op.drop_column("copr_builds", "project_name") | ||
op.drop_column("git_projects", "https_url") | ||
# ### 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