-
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.
Merge pull request #74 from PCS-Poli-USP/develop
Deploy Forum: search bar and general forum
- Loading branch information
Showing
9 changed files
with
103 additions
and
49 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 |
---|---|---|
|
@@ -30,35 +30,6 @@ jobs: | |
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
# - name: Check Alembic Migration Version | ||
# id: alembicChecker | ||
# uses: DevGlitch/[email protected] | ||
# with: | ||
# db_url: ${{ secrets.DB_URL }} | ||
# migrations_path: ./migrations/ | ||
|
||
# - name: check Alembic migration | ||
# id: alembicChecker | ||
# uses: appleboy/[email protected] | ||
# with: | ||
# host: ${{ secrets.SSH_HOST }} | ||
# username: ${{ secrets.SSH_USER }} | ||
# password: ${{ secrets.SSH_PASSCODE }} | ||
# port: ${{ secrets.SSH_PORT }} | ||
# script: | | ||
# cd /diskb/home/backend | ||
# git pull origin develop | ||
# . /diskb/home/backend/.venv/bin/activate | ||
# alembic heads > heads_output.txt | ||
# alembic current > current_output.txt | ||
# if cmp -s heads_output.txt current_output.txt; then | ||
# echo "No new migrations to apply." | ||
# echo "new_migrations=false" >> $GITHUB_ENV | ||
# else | ||
# echo "New migrations found." | ||
# echo "new_migrations=true" >> $GITHUB_ENV | ||
# fi | ||
|
||
|
||
- name: executing remote ssh commands using password | ||
uses: appleboy/[email protected] | ||
|
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,35 @@ | ||
"""forum_global | ||
Revision ID: 64a70f848243 | ||
Revises: 49bd2f582a5a | ||
Create Date: 2024-11-21 22:36:19.346377 | ||
""" | ||
from typing import Sequence, Union | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
import sqlmodel | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = '64a70f848243' | ||
down_revision: Union[str, None] = '49bd2f582a5a' | ||
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.alter_column('forumpost', 'class_id', | ||
existing_type=sa.INTEGER(), | ||
nullable=True) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column('forumpost', 'class_id', | ||
existing_type=sa.INTEGER(), | ||
nullable=False) | ||
# ### 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
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