mirror of
https://github.com/DarrylNixon/ghostforge
synced 2024-04-22 06:27:20 -07:00
Replaced rolled-own/argon2 with fastapi-users, oof
This commit is contained in:
parent
216d2ac42b
commit
6f81ef699d
14 changed files with 310 additions and 142 deletions
|
@ -6,7 +6,8 @@ from alembic import context
|
|||
from sqlalchemy import pool
|
||||
from sqlalchemy.engine import Connection
|
||||
from sqlalchemy.ext.asyncio import async_engine_from_config
|
||||
from sqlmodel import SQLModel
|
||||
|
||||
from ghostforge.db import Base
|
||||
|
||||
# from ghostforge.models import User
|
||||
|
||||
|
@ -32,7 +33,7 @@ if config.config_file_name is not None:
|
|||
# for 'autogenerate' support
|
||||
# from myapp import mymodel
|
||||
# target_metadata = mymodel.Base.metadata
|
||||
target_metadata = SQLModel.metadata
|
||||
target_metadata = Base.metadata
|
||||
|
||||
# other values from the config, defined by the needs of env.py,
|
||||
# can be acquired:
|
||||
|
|
|
@ -7,7 +7,6 @@ Create Date: ${create_date}
|
|||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
import sqlmodel
|
||||
${imports if imports else ""}
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue