-
-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'tulir/master' into hs/portal-limit
- Loading branch information
Showing
55 changed files
with
1,770 additions
and
1,187 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 |
---|---|---|
|
@@ -14,4 +14,5 @@ __pycache__ | |
/registration.yaml | ||
*.log* | ||
*.db | ||
*.pickle | ||
*.bak |
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
32 changes: 32 additions & 0 deletions
32
alembic/versions/3e3745baa458_store_matrix_avatar_url_in_database.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 @@ | ||
"""Store Matrix avatar URL in database | ||
Revision ID: 3e3745baa458 | ||
Revises: dff56c93da8d | ||
Create Date: 2020-06-15 14:32:10.454033 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '3e3745baa458' | ||
down_revision = 'dff56c93da8d' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('portal', schema=None) as batch_op: | ||
batch_op.add_column(sa.Column('avatar_url', sa.String(), nullable=True)) | ||
|
||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('portal', schema=None) as batch_op: | ||
batch_op.drop_column('avatar_url') | ||
|
||
# ### end Alembic commands ### |
30 changes: 30 additions & 0 deletions
30
alembic/versions/888275d58e57_add_double_puppet_base_url_to_puppet_.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 double puppet base URL to puppet table | ||
Revision ID: 888275d58e57 | ||
Revises: a328bf4f0932 | ||
Create Date: 2020-10-14 18:52:00.730666 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import postgresql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '888275d58e57' | ||
down_revision = 'a328bf4f0932' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('puppet', schema=None) as batch_op: | ||
batch_op.add_column(sa.Column('base_url', sa.Text(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('puppet', schema=None) as batch_op: | ||
batch_op.drop_column('base_url') | ||
# ### end Alembic commands ### |
38 changes: 38 additions & 0 deletions
38
alembic/versions/a328bf4f0932_store_encryption_state_event_in_db.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,38 @@ | ||
"""Store encryption state event in db | ||
Revision ID: a328bf4f0932 | ||
Revises: ccbaff858240 | ||
Create Date: 2020-07-11 21:31:27.059813 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
from mautrix.client.state_store.sqlalchemy import SerializableType | ||
from mautrix.types import RoomEncryptionStateEventContent | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'a328bf4f0932' | ||
down_revision = 'ccbaff858240' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('mx_room_state', schema=None) as batch_op: | ||
batch_op.add_column(sa.Column('encryption', | ||
SerializableType(RoomEncryptionStateEventContent), | ||
nullable=True)) | ||
batch_op.add_column(sa.Column('has_full_member_list', sa.Boolean(), nullable=True)) | ||
batch_op.add_column(sa.Column('is_encrypted', sa.Boolean(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('mx_room_state', schema=None) as batch_op: | ||
batch_op.drop_column('is_encrypted') | ||
batch_op.drop_column('has_full_member_list') | ||
batch_op.drop_column('encryption') | ||
# ### end Alembic commands ### |
Oops, something went wrong.