This commit is contained in:
Shroominic
2025-08-23 16:48:53 -03:00
parent 0ad60853d4
commit 93f2bf98b8
3 changed files with 8 additions and 8 deletions
@@ -6,8 +6,8 @@ Create Date: 2025-08-09 13:48:40.648729
"""
import sqlalchemy as sa
import sqlmodel
from alembic import op
from sqlmodel.sql import sqltypes
# revision identifiers, used by Alembic.
revision = "7bc4e8b02b9d"
@@ -20,7 +20,7 @@ def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.add_column(
"api_keys",
sa.Column("mint_url", sqlmodel.sql.sqltypes.AutoString(), nullable=True),
sa.Column("mint_url", sqltypes.AutoString(), nullable=True),
)
# ### end Alembic commands ###
@@ -6,8 +6,8 @@ Create Date: 2025-08-13 16:45:42.148314
"""
import sqlalchemy as sa
import sqlmodel
from alembic import op
from sqlmodel.sql import sqltypes
# revision identifiers, used by Alembic.
revision = "898f00ea481e"
@@ -20,11 +20,11 @@ def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.add_column(
"api_keys",
sa.Column("refund_mint_url", sqlmodel.sql.sqltypes.AutoString(), nullable=True),
sa.Column("refund_mint_url", sqltypes.AutoString(), nullable=True),
)
op.add_column(
"api_keys",
sa.Column("refund_currency", sqlmodel.sql.sqltypes.AutoString(), nullable=True),
sa.Column("refund_currency", sqltypes.AutoString(), nullable=True),
)
op.drop_column("api_keys", "mint_url")
# ### end Alembic commands ###
+3 -3
View File
@@ -6,8 +6,8 @@ Create Date: 2025-08-09 13:28:38.537652
"""
import sqlalchemy as sa
import sqlmodel as sqlm
from alembic import op
from sqlmodel.sql import sqltypes
# revision identifiers, used by Alembic.
revision = "f6ce1348e266"
@@ -20,9 +20,9 @@ def upgrade() -> None:
if "api_keys" not in sa.inspect(op.get_bind()).get_table_names():
op.create_table(
"api_keys",
sa.Column("hashed_key", sqlm.sql.sqltypes.AutoString(), nullable=False),
sa.Column("hashed_key", sqltypes.AutoString(), nullable=False),
sa.Column("balance", sa.Integer(), nullable=False),
sa.Column("refund_address", sqlm.sql.sqltypes.AutoString(), nullable=True),
sa.Column("refund_address", sqltypes.AutoString(), nullable=True),
sa.Column("key_expiry_time", sa.Integer(), nullable=True),
sa.Column("total_spent", sa.Integer(), nullable=False),
sa.Column("total_requests", sa.Integer(), nullable=False),