wip
This commit is contained in:
parent
f0f1ce5018
commit
d0b3712f17
18 changed files with 568 additions and 23 deletions
|
|
@ -0,0 +1,34 @@
|
|||
"""add hero.flashlight_angle
|
||||
|
||||
Revision ID: e1af975310a1
|
||||
Revises: a1cd0a1947be
|
||||
Create Date: 2023-06-28 19:53:18.068873
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
import sqlmodel
|
||||
from learn_sql_model.er_diagram import generate_er_diagram, generate_er_markdown
|
||||
from learn_sql_model.config import get_config
|
||||
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'e1af975310a1'
|
||||
down_revision = 'a1cd0a1947be'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
pass
|
||||
# ### end Alembic commands ###
|
||||
generate_er_diagram(f'migrations/versions/{revision}_er_diagram.png')
|
||||
generate_er_markdown(f'migrations/versions/{revision}_er_diagram.md', f'migrations/versions/er_diagram_{revision}.png')
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
pass
|
||||
# ### end Alembic commands ###
|
||||
Loading…
Add table
Add a link
Reference in a new issue