diff options
| author | 2026-07-02 18:34:39 +0200 | |
|---|---|---|
| committer | 2026-07-02 18:34:51 +0200 | |
| commit | fb28c648390464c75ba4903b0e1e0ff2642c8ffb (patch) | |
| tree | 86fa057d26cb07842903aeade09f0fc1bb9614c7 /db/migrations/versions/202607021803-ac4fbf1fea31_added_password.py | |
| parent | 4105c3b777e82cb4b6dadf27c109dd21010ad8ce (diff) | |
| download | server-fb28c648390464c75ba4903b0e1e0ff2642c8ffb.tar.gz server-fb28c648390464c75ba4903b0e1e0ff2642c8ffb.tar.bz2 server-fb28c648390464c75ba4903b0e1e0ff2642c8ffb.zip | |
Added users and migrations
Diffstat (limited to 'db/migrations/versions/202607021803-ac4fbf1fea31_added_password.py')
| -rw-r--r-- | db/migrations/versions/202607021803-ac4fbf1fea31_added_password.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/db/migrations/versions/202607021803-ac4fbf1fea31_added_password.py b/db/migrations/versions/202607021803-ac4fbf1fea31_added_password.py new file mode 100644 index 0000000..116d27e --- /dev/null +++ b/db/migrations/versions/202607021803-ac4fbf1fea31_added_password.py | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | """Added password | ||
| 2 | |||
| 3 | Revision ID: ac4fbf1fea31 | ||
| 4 | Revises: fc6608d3f9cc | ||
| 5 | Create Date: 2026-07-02 18:03:17.190700 | ||
| 6 | |||
| 7 | """ | ||
| 8 | from typing import Sequence, Union | ||
| 9 | |||
| 10 | from alembic import op | ||
| 11 | import sqlalchemy as sa | ||
| 12 | import sqlmodel | ||
| 13 | |||
| 14 | |||
| 15 | # revision identifiers, used by Alembic. | ||
| 16 | revision: str = 'ac4fbf1fea31' | ||
| 17 | down_revision: Union[str, Sequence[str], None] = 'fc6608d3f9cc' | ||
| 18 | branch_labels: Union[str, Sequence[str], None] = None | ||
| 19 | depends_on: Union[str, Sequence[str], None] = None | ||
| 20 | |||
| 21 | |||
| 22 | def upgrade() -> None: | ||
| 23 | """Upgrade schema.""" | ||
| 24 | # ### commands auto generated by Alembic - please adjust! ### | ||
| 25 | op.add_column('user', sa.Column('password', sqlmodel.sql.sqltypes.AutoString(), nullable=False)) | ||
| 26 | # ### end Alembic commands ### | ||
| 27 | |||
| 28 | |||
| 29 | def downgrade() -> None: | ||
| 30 | """Downgrade schema.""" | ||
| 31 | # ### commands auto generated by Alembic - please adjust! ### | ||
| 32 | op.drop_column('user', 'password') | ||
| 33 | # ### end Alembic commands ### | ||
