Alembic: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== Overview == SQLAlchemy based database migration tool alembic 내용 정리 == Example == <source lang=bash> $ alembic init myproject Creating directory /home/pchero/gith...") |
|||
Line 27: | Line 27: | ||
[[category:python]] | [[category:python]] | ||
[[category:Command/utility]] |
Revision as of 21:51, 25 June 2020
Overview
SQLAlchemy based database migration tool alembic 내용 정리
Example
<source lang=bash> $ alembic init myproject
Creating directory /home/pchero/github/etc_examples/alembic_example/simple_test/myproject ... done Creating directory /home/pchero/github/etc_examples/alembic_example/simple_test/myproject/versions ... done Generating /home/pchero/github/etc_examples/alembic_example/simple_test/myproject/env.py ... done Generating /home/pchero/github/etc_examples/alembic_example/simple_test/myproject/script.py.mako ... done Generating /home/pchero/github/etc_examples/alembic_example/simple_test/myproject/README ... done Generating /home/pchero/github/etc_examples/alembic_example/simple_test/alembic.ini ... done Please edit configuration/connection/logging settings in '/home/pchero/github/etc_examples/alembic_example/simple_test/alembic.ini' before proceeding.
$ tree . . ├── alembic.ini └── myproject
├── env.py ├── README ├── script.py.mako └── versions
</source>