feat: add hosts and params files, fix rules SECTION NEW header
All checks were successful
Build containers when image tags change / build-if-image-changed (backend, shorefront-backend, shorefront backend, backend/Dockerfile, git.baumann.gr/adebaumann/shorefront-backend, .backend.image) (push) Successful in 44s
Build containers when image tags change / build-if-image-changed (frontend, shorefront-frontend, shorefront frontend, frontend/Dockerfile, git.baumann.gr/adebaumann/shorefront-frontend, .frontend.image) (push) Successful in 1m32s

This commit is contained in:
2026-03-01 01:42:28 +01:00
parent 15f28cb070
commit 21d404229a
12 changed files with 308 additions and 4 deletions

View File

@@ -0,0 +1,37 @@
"""add hosts and params tables
Revision ID: 0004
Revises: 0003
Create Date: 2026-03-01
"""
from alembic import op
import sqlalchemy as sa
revision = "0004"
down_revision = "0003"
branch_labels = None
depends_on = None
def upgrade() -> None:
op.create_table(
"hosts",
sa.Column("id", sa.Integer, primary_key=True),
sa.Column("config_id", sa.Integer, sa.ForeignKey("configs.id"), nullable=False),
sa.Column("zone_id", sa.Integer, sa.ForeignKey("zones.id"), nullable=False),
sa.Column("interface", sa.String(32), nullable=False),
sa.Column("subnet", sa.String(64), nullable=False),
sa.Column("options", sa.Text, server_default="''"),
)
op.create_table(
"params",
sa.Column("id", sa.Integer, primary_key=True),
sa.Column("config_id", sa.Integer, sa.ForeignKey("configs.id"), nullable=False),
sa.Column("name", sa.String(64), nullable=False),
sa.Column("value", sa.String(255), nullable=False),
)
def downgrade() -> None:
op.drop_table("params")
op.drop_table("hosts")