Just-another-Muensterhack / helpwave-backend

https://main.helpwave.de/
0 stars 0 forks source link

Alembic Integration #38

Closed felbinger closed 1 year ago

felbinger commented 1 year ago

37

felbinger commented 1 year ago
~/web $ alembic upgrade head
sh: alembic: not found
~/web $ pip3 install alembic
Defaulting to user installation because normal site-packages is not writeable
Collecting alembic
  Downloading alembic-1.8.1-py3-none-any.whl (209 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 209.8/209.8 kB 11.1 MB/s eta 0:00:00
Requirement already satisfied: SQLAlchemy>=1.3.0 in /usr/local/lib/python3.10/site-packages (from alembic) (1.4.41)
Collecting Mako
  Downloading Mako-1.2.3-py3-none-any.whl (78 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.7/78.7 kB 8.0 MB/s eta 0:00:00
Requirement already satisfied: greenlet!=0.4.17 in /usr/local/lib/python3.10/site-packages (from SQLAlchemy>=1.3.0->alembic) (1.1.3)
Collecting MarkupSafe>=0.9.2
  Downloading MarkupSafe-2.1.1-cp310-cp310-musllinux_1_1_x86_64.whl (29 kB)
Installing collected packages: MarkupSafe, Mako, alembic
  WARNING: The script mako-render is installed in '/home/app/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script alembic is installed in '/home/app/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed Mako-1.2.3 MarkupSafe-2.1.1 alembic-1.8.1
~/web $ python3 -m alembic upgrade head
INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO  [alembic.runtime.migration] Will assume transactional DDL.
INFO  [alembic.runtime.migration] Running upgrade  -> d37080cc82e2, init