-
Notifications
You must be signed in to change notification settings - Fork 8
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 #1432 from ScilifelabDataCentre/dev
New release: Stats
- Loading branch information
Showing
17 changed files
with
416 additions
and
23 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "2.2.62" | ||
__version__ = "2.3.0" |
40 changes: 40 additions & 0 deletions
40
migrations/versions/399801a80e7a_change_researchuser_count_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,40 @@ | ||
"""change_researchuser_count_column | ||
Revision ID: 399801a80e7a | ||
Revises: edde808b4556 | ||
Create Date: 2023-05-29 09:37:31.007336 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import mysql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "399801a80e7a" | ||
down_revision = "edde808b4556" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column( | ||
table_name="reporting", | ||
column_name="researchuser_count", | ||
nullable=False, | ||
new_column_name="researcher_count", | ||
type_=sa.Integer(), | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column( | ||
table_name="reporting", | ||
column_name="researcher_count", | ||
nullable=False, | ||
new_column_name="researchuser_count", | ||
type_=sa.Integer(), | ||
) | ||
# ### end Alembic commands ### |
28 changes: 28 additions & 0 deletions
28
migrations/versions/53bb37a3cd84_add_num_unique_proj_owners.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_num_unique_proj_owners | ||
Revision ID: 53bb37a3cd84 | ||
Revises: 93ec6983ce8d | ||
Create Date: 2023-05-30 13:24:52.406907 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import mysql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "53bb37a3cd84" | ||
down_revision = "93ec6983ce8d" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column("reporting", sa.Column("project_owner_unique_count", sa.Integer(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column("reporting", "project_owner_unique_count") | ||
# ### 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
"""unit_personnel_added | ||
Revision ID: 879b99e7f212 | ||
Revises: b976f6cda95c | ||
Create Date: 2023-05-29 07:51:05.491352 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import mysql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "879b99e7f212" | ||
down_revision = "b976f6cda95c" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column( | ||
table_name="reporting", | ||
column_name="unituser_count", | ||
nullable=False, | ||
new_column_name="unit_personnel_count", | ||
type_=sa.Integer(), | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column( | ||
"reporting", | ||
"unit_personnel_count", | ||
nullable=False, | ||
new_column_name="unituser_count", | ||
type_=sa.Integer(), | ||
) | ||
# ### end Alembic commands ### |
28 changes: 28 additions & 0 deletions
28
migrations/versions/93ec6983ce8d_number_of_inactive_projects_added.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 @@ | ||
"""number_of_inactive_projects_added | ||
Revision ID: 93ec6983ce8d | ||
Revises: 399801a80e7a | ||
Create Date: 2023-05-30 08:47:53.926692 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import mysql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "93ec6983ce8d" | ||
down_revision = "399801a80e7a" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column("reporting", sa.Column("inactive_project_count", sa.Integer(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column("reporting", "inactive_project_count") | ||
# ### end Alembic commands ### |
28 changes: 28 additions & 0 deletions
28
migrations/versions/aec752f1e0a5_tb_uploaded_since_start_added.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 @@ | ||
"""tb_uploaded_since_start_added | ||
Revision ID: aec752f1e0a5 | ||
Revises: d48ecb4db259 | ||
Create Date: 2023-05-31 14:09:07.327919 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import mysql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "aec752f1e0a5" | ||
down_revision = "d48ecb4db259" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column("reporting", sa.Column("tb_uploaded_since_start", sa.Float(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column("reporting", "tb_uploaded_since_start") | ||
# ### end Alembic commands ### |
28 changes: 28 additions & 0 deletions
28
migrations/versions/c1e908241401_total_number_of_projects_added.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 @@ | ||
"""total_number_of_projects_added | ||
Revision ID: c1e908241401 | ||
Revises: 879b99e7f212 | ||
Create Date: 2023-05-29 11:27:10.843043 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import mysql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "c1e908241401" | ||
down_revision = "879b99e7f212" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column("reporting", sa.Column("total_project_count", sa.Integer(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column("reporting", "total_project_count") | ||
# ### end Alembic commands ### |
28 changes: 28 additions & 0 deletions
28
migrations/versions/d48ecb4db259_add_terrabytes_stored_in_system.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_terrabytes_stored_in_system | ||
Revision ID: d48ecb4db259 | ||
Revises: 53bb37a3cd84 | ||
Create Date: 2023-05-30 13:44:05.232573 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import mysql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "d48ecb4db259" | ||
down_revision = "53bb37a3cd84" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column("reporting", sa.Column("tb_stored_now", sa.Float, nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column("reporting", "tb_stored_now") | ||
# ### end Alembic commands ### |
Oops, something went wrong.