* feat: byok provider models in db also * make tests and sync api * fix inconsistent state with recreating provider of same name * fix sync on byok creation * update revision * move stripe code for testing purposes * revert * add refresh byok models endpoint * just stage publish api * add tests * reorder revision * add test for name clashes
32 lines
843 B
Python
32 lines
843 B
Python
"""last_synced column for providers
|
|
|
|
Revision ID: 308a180244fc
|
|
Revises: 82feb220a9b8
|
|
Create Date: 2026-01-05 18:54:15.996786
|
|
|
|
"""
|
|
|
|
from typing import Sequence, Union
|
|
|
|
import sqlalchemy as sa
|
|
|
|
from alembic import op
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision: str = "308a180244fc"
|
|
down_revision: Union[str, None] = "82feb220a9b8"
|
|
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! ###
|
|
op.add_column("providers", sa.Column("last_synced", sa.DateTime(timezone=True), nullable=True))
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column("providers", "last_synced")
|
|
# ### end Alembic commands ###
|