-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* develope: (42 commits) change websocket key, from repository_id to ci_pipeline_id. add git_repo_id_to_ci_pipe_id api add disconnect. Remove disconnect fix user cannot save hot fixed. web socket will into infinite function Emergency bug. fix bug fix ad null handling fix plugin status add create user from ad by parameter add project column on delete action change user_reloader=False create & delete project add creator_id add project creator_id Craft NexusIssue and remove redundant API add set default project creator add alembic version file add project creator id column fix model column ...
- Loading branch information
Showing
17 changed files
with
721 additions
and
302 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
apis/alembic/versions/39ac2afbe86f_add_project_creator_column.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,30 @@ | ||
"""add project creator column | ||
Revision ID: 39ac2afbe86f | ||
Revises: ec4c3aab9b73 | ||
Create Date: 2021-05-04 17:06:28.369384 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '39ac2afbe86f' | ||
down_revision = 'ec4c3aab9b73' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('projects', sa.Column('creator_id', sa.Integer(), nullable=True)) | ||
op.create_foreign_key(None, 'projects', 'user', ['creator_id'], ['id']) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_constraint(None, 'projects', type_='foreignkey') | ||
op.drop_column('projects', 'creator_id') | ||
# ### end Alembic commands ### |
34 changes: 34 additions & 0 deletions
34
apis/alembic/versions/856b68aedb0b_add_user_creator_id_column_ondelete_.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 user creator_id column ondelete funtion | ||
Revision ID: 856b68aedb0b | ||
Revises: 39ac2afbe86f | ||
Create Date: 2021-05-05 10:15:50.725992 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '856b68aedb0b' | ||
down_revision = '39ac2afbe86f' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_constraint('projects_owner_id_fkey', 'projects', type_='foreignkey') | ||
op.drop_constraint('projects_creator_id_fkey', 'projects', type_='foreignkey') | ||
op.create_foreign_key(None, 'projects', 'user', ['owner_id'], ['id'], ondelete='SET NULL') | ||
op.create_foreign_key(None, 'projects', 'user', ['creator_id'], ['id'], ondelete='SET NULL') | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_constraint(None, 'projects', type_='foreignkey') | ||
op.drop_constraint(None, 'projects', type_='foreignkey') | ||
op.create_foreign_key('projects_creator_id_fkey', 'projects', 'user', ['creator_id'], ['id']) | ||
op.create_foreign_key('projects_owner_id_fkey', 'projects', 'user', ['owner_id'], ['id']) | ||
# ### end Alembic commands ### |
30 changes: 30 additions & 0 deletions
30
apis/alembic/versions/ec4c3aab9b73_project_member_add_department_title.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,30 @@ | ||
"""project member add department title | ||
Revision ID: ec4c3aab9b73 | ||
Revises: 63cac0772a9c | ||
Create Date: 2021-05-04 11:27:10.715603 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'ec4c3aab9b73' | ||
down_revision = '63cac0772a9c' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('project_member', sa.Column('department', sa.String(), nullable=True)) | ||
op.add_column('project_member', sa.Column('title', sa.String(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('project_member', 'title') | ||
op.drop_column('project_member', 'department') | ||
# ### 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
Oops, something went wrong.