"""Add `Meter.archived_at`-field

Revision ID: c898ba0e8e77
Revises: a3ba9e3475b9
Create Date: 2025-07-24 15:16:25.558177

"""

import sqlalchemy as sa
from alembic import op

# Polar Custom Imports

# revision identifiers, used by Alembic.
revision = "c898ba0e8e77"
down_revision = "a3ba9e3475b9"
branch_labels: tuple[str] | None = None
depends_on: tuple[str] | None = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column(
        "meters", sa.Column("archived_at", sa.TIMESTAMP(timezone=True), nullable=True)
    )
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column("meters", "archived_at")
    # ### end Alembic commands ###
