mirror of
https://github.com/sstent/foodplanner.git
synced 2026-01-25 11:11:36 +00:00
added alembic database migrations, json import/export
This commit is contained in:
30
alembic/versions/fd4f39482990_create_all_tables.py
Normal file
30
alembic/versions/fd4f39482990_create_all_tables.py
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
"""Create all tables
|
||||||
|
|
||||||
|
Revision ID: fd4f39482990
|
||||||
|
Revises: cf94fca21104
|
||||||
|
Create Date: 2025-09-28 12:15:02.412270
|
||||||
|
|
||||||
|
"""
|
||||||
|
from typing import Sequence, Union
|
||||||
|
|
||||||
|
from alembic import op
|
||||||
|
import sqlalchemy as sa
|
||||||
|
|
||||||
|
|
||||||
|
# revision identifiers, used by Alembic.
|
||||||
|
revision: str = 'fd4f39482990'
|
||||||
|
down_revision: Union[str, None] = 'cf94fca21104'
|
||||||
|
branch_labels: Union[str, Sequence[str], None] = None
|
||||||
|
depends_on: Union[str, Sequence[str], None] = None
|
||||||
|
|
||||||
|
|
||||||
|
def upgrade() -> None:
|
||||||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
|
pass
|
||||||
|
# ### end Alembic commands ###
|
||||||
|
|
||||||
|
|
||||||
|
def downgrade() -> None:
|
||||||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
|
pass
|
||||||
|
# ### end Alembic commands ###
|
||||||
Reference in New Issue
Block a user