slidge 0.3.0a3__py3-none-any.whl → 0.3.0b2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- slidge/contact/contact.py +2 -2
- slidge/contact/roster.py +2 -0
- slidge/core/dispatcher/message/message.py +3 -1
- slidge/core/dispatcher/presence.py +5 -0
- slidge/core/gateway.py +1 -1
- slidge/core/mixins/attachment.py +31 -0
- slidge/core/mixins/avatar.py +8 -13
- slidge/core/session.py +7 -3
- slidge/db/alembic/versions/cef02a8b1451_initial_schema.py +361 -0
- slidge/group/participant.py +1 -1
- slidge/group/room.py +52 -53
- slidge/main.py +6 -4
- slidge/migration.py +14 -5
- slidge/util/conf.py +4 -1
- {slidge-0.3.0a3.dist-info → slidge-0.3.0b2.dist-info}/METADATA +1 -1
- {slidge-0.3.0a3.dist-info → slidge-0.3.0b2.dist-info}/RECORD +20 -43
- slidge/db/alembic/versions/0337c90c0b96_unify_legacy_xmpp_id_mappings.py +0 -183
- slidge/db/alembic/versions/04cf35e3cf85_add_participant_nickname_no_illegal.py +0 -33
- slidge/db/alembic/versions/09f27f098baa_add_missing_attributes_in_room.py +0 -36
- slidge/db/alembic/versions/15b0bd83407a_remove_bogus_unique_constraints_on_room_.py +0 -85
- slidge/db/alembic/versions/2461390c0af2_store_contacts_caps_verstring_in_db.py +0 -36
- slidge/db/alembic/versions/29f5280c61aa_store_subject_setter_in_room.py +0 -37
- slidge/db/alembic/versions/2b1f45ab7379_store_room_subject_setter_by_nickname.py +0 -41
- slidge/db/alembic/versions/3071e0fa69d4_add_contact_client_type.py +0 -52
- slidge/db/alembic/versions/3231d2c623bc_add_unique_contraint_for_attachment_.py +0 -33
- slidge/db/alembic/versions/45c24cc73c91_add_bob.py +0 -42
- slidge/db/alembic/versions/4dbd23a3f868_new_avatar_store.py +0 -105
- slidge/db/alembic/versions/54ce3cde350c_use_hash_for_avatar_filenames.py +0 -50
- slidge/db/alembic/versions/58b98dacf819_refactor.py +0 -118
- slidge/db/alembic/versions/5bd48bfdffa2_lift_room_legacy_id_constraint.py +0 -61
- slidge/db/alembic/versions/75a62b74b239_ditch_hats_table.py +0 -74
- slidge/db/alembic/versions/82a4af84b679_add_muc_history_filled.py +0 -48
- slidge/db/alembic/versions/8b993243a536_add_vcard_content_to_contact_table.py +0 -43
- slidge/db/alembic/versions/8d2ced764698_rely_on_db_to_store_contacts_rooms_and_.py +0 -139
- slidge/db/alembic/versions/aa9d82a7f6ef_db_creation.py +0 -50
- slidge/db/alembic/versions/abba1ae0edb3_store_avatar_legacy_id_in_the_contact_.py +0 -79
- slidge/db/alembic/versions/b33993e87db3_move_everything_to_persistent_db.py +0 -214
- slidge/db/alembic/versions/b64b1a793483_add_source_and_legacy_id_for_archived_.py +0 -52
- slidge/db/alembic/versions/c4a8ec35a0e8_per_room_user_nick.py +0 -34
- slidge/db/alembic/versions/e91195719c2c_store_users_avatars_persistently.py +0 -26
- {slidge-0.3.0a3.dist-info → slidge-0.3.0b2.dist-info}/WHEEL +0 -0
- {slidge-0.3.0a3.dist-info → slidge-0.3.0b2.dist-info}/entry_points.txt +0 -0
- {slidge-0.3.0a3.dist-info → slidge-0.3.0b2.dist-info}/licenses/LICENSE +0 -0
- {slidge-0.3.0a3.dist-info → slidge-0.3.0b2.dist-info}/top_level.txt +0 -0
@@ -1,52 +0,0 @@
|
|
1
|
-
"""Add source and legacy ID for archived messages
|
2
|
-
|
3
|
-
Revision ID: b64b1a793483
|
4
|
-
Revises: 82a4af84b679
|
5
|
-
Create Date: 2024-07-22 21:06:35.020569
|
6
|
-
|
7
|
-
"""
|
8
|
-
|
9
|
-
from typing import Sequence, Union
|
10
|
-
|
11
|
-
import sqlalchemy as sa
|
12
|
-
from alembic import op
|
13
|
-
|
14
|
-
from slidge.db.models import ArchivedMessage
|
15
|
-
|
16
|
-
# revision identifiers, used by Alembic.
|
17
|
-
revision: str = "b64b1a793483"
|
18
|
-
down_revision: Union[str, None] = "82a4af84b679"
|
19
|
-
branch_labels: Union[str, Sequence[str], None] = None
|
20
|
-
depends_on: Union[str, Sequence[str], None] = None
|
21
|
-
|
22
|
-
|
23
|
-
def upgrade() -> None:
|
24
|
-
# since we don't want source to be nullable, we drop all rows first.
|
25
|
-
# This is what you get by using alpha versions!
|
26
|
-
op.execute(sa.delete(ArchivedMessage))
|
27
|
-
|
28
|
-
if op.get_bind().engine.name == "postgresql":
|
29
|
-
op.execute("CREATE TYPE archivedmessagesource AS ENUM ('LIVE', 'BACKFILL')")
|
30
|
-
|
31
|
-
# ### commands auto generated by Alembic - please adjust! ###
|
32
|
-
|
33
|
-
with op.batch_alter_table("mam", schema=None) as batch_op:
|
34
|
-
batch_op.add_column(
|
35
|
-
sa.Column(
|
36
|
-
"source",
|
37
|
-
sa.Enum("LIVE", "BACKFILL", name="archivedmessagesource"),
|
38
|
-
nullable=False,
|
39
|
-
)
|
40
|
-
)
|
41
|
-
batch_op.add_column(sa.Column("legacy_id", sa.String(), nullable=True))
|
42
|
-
|
43
|
-
# ### end Alembic commands ###
|
44
|
-
|
45
|
-
|
46
|
-
def downgrade() -> None:
|
47
|
-
# ### commands auto generated by Alembic - please adjust! ###
|
48
|
-
with op.batch_alter_table("mam", schema=None) as batch_op:
|
49
|
-
batch_op.drop_column("legacy_id")
|
50
|
-
batch_op.drop_column("source")
|
51
|
-
|
52
|
-
# ### end Alembic commands ###
|
@@ -1,34 +0,0 @@
|
|
1
|
-
"""Per-room user nick
|
2
|
-
|
3
|
-
Revision ID: c4a8ec35a0e8
|
4
|
-
Revises: 09f27f098baa
|
5
|
-
Create Date: 2024-07-12 06:27:47.397925
|
6
|
-
|
7
|
-
"""
|
8
|
-
|
9
|
-
from typing import Sequence, Union
|
10
|
-
|
11
|
-
import sqlalchemy as sa
|
12
|
-
from alembic import op
|
13
|
-
|
14
|
-
# revision identifiers, used by Alembic.
|
15
|
-
revision: str = "c4a8ec35a0e8"
|
16
|
-
down_revision: Union[str, None] = "09f27f098baa"
|
17
|
-
branch_labels: Union[str, Sequence[str], None] = None
|
18
|
-
depends_on: Union[str, Sequence[str], None] = None
|
19
|
-
|
20
|
-
|
21
|
-
def upgrade() -> None:
|
22
|
-
# ### commands auto generated by Alembic - please adjust! ###
|
23
|
-
with op.batch_alter_table("room", schema=None) as batch_op:
|
24
|
-
batch_op.add_column(sa.Column("user_nick", sa.String(), nullable=True))
|
25
|
-
|
26
|
-
# ### end Alembic commands ###
|
27
|
-
|
28
|
-
|
29
|
-
def downgrade() -> None:
|
30
|
-
# ### commands auto generated by Alembic - please adjust! ###
|
31
|
-
with op.batch_alter_table("room", schema=None) as batch_op:
|
32
|
-
batch_op.drop_column("user_nick")
|
33
|
-
|
34
|
-
# ### end Alembic commands ###
|
@@ -1,26 +0,0 @@
|
|
1
|
-
"""Store users' avatars' hashes persistently
|
2
|
-
|
3
|
-
Revision ID: e91195719c2c
|
4
|
-
Revises: aa9d82a7f6ef
|
5
|
-
Create Date: 2024-06-01 14:14:51.984943
|
6
|
-
|
7
|
-
"""
|
8
|
-
|
9
|
-
from typing import Sequence, Union
|
10
|
-
|
11
|
-
import sqlalchemy as sa
|
12
|
-
from alembic import op
|
13
|
-
|
14
|
-
# revision identifiers, used by Alembic.
|
15
|
-
revision: str = "e91195719c2c"
|
16
|
-
down_revision: Union[str, None] = "aa9d82a7f6ef"
|
17
|
-
branch_labels: Union[str, Sequence[str], None] = None
|
18
|
-
depends_on: Union[str, Sequence[str], None] = None
|
19
|
-
|
20
|
-
|
21
|
-
def upgrade() -> None:
|
22
|
-
op.add_column("user_account", sa.Column("avatar_hash", sa.String(), nullable=True))
|
23
|
-
|
24
|
-
|
25
|
-
def downgrade() -> None:
|
26
|
-
op.drop_column("user_account", "avatar_hash")
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|