Fix DB issues
This commit is contained in:
@@ -18,6 +18,13 @@ COPY shared/ ./shared/
|
||||
# Copy application code
|
||||
COPY services/production/app/ ./app/
|
||||
|
||||
# Copy migrations and alembic config
|
||||
COPY services/production/migrations/ /app/migrations/
|
||||
COPY services/production/alembic.ini /app/alembic.ini
|
||||
|
||||
# Copy scripts directory
|
||||
COPY scripts/ ./scripts/
|
||||
|
||||
# Create logs directory
|
||||
RUN mkdir -p logs
|
||||
|
||||
|
||||
@@ -9,12 +9,26 @@ from .production import (
|
||||
ProductionBatch,
|
||||
ProductionSchedule,
|
||||
ProductionCapacity,
|
||||
QualityCheck
|
||||
QualityCheckTemplate,
|
||||
QualityCheck,
|
||||
Equipment,
|
||||
ProductionStatus,
|
||||
ProductionPriority,
|
||||
EquipmentStatus,
|
||||
ProcessStage,
|
||||
EquipmentType,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"ProductionBatch",
|
||||
"ProductionSchedule",
|
||||
"ProductionSchedule",
|
||||
"ProductionCapacity",
|
||||
"QualityCheck"
|
||||
"QualityCheckTemplate",
|
||||
"QualityCheck",
|
||||
"Equipment",
|
||||
"ProductionStatus",
|
||||
"ProductionPriority",
|
||||
"EquipmentStatus",
|
||||
"ProcessStage",
|
||||
"EquipmentType",
|
||||
]
|
||||
@@ -1,29 +0,0 @@
|
||||
"""Initial production service tables
|
||||
|
||||
Revision ID: 001_initial_production
|
||||
Revises:
|
||||
Create Date: 2024-01-01 12:00:00.000000
|
||||
|
||||
"""
|
||||
from typing import Sequence, Union
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision: str = '001_initial_production'
|
||||
down_revision: Union[str, None] = None
|
||||
branch_labels: Union[str, Sequence[str], None] = None
|
||||
depends_on: Union[str, Sequence[str], None] = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
# TODO: Add table creation statements for production service
|
||||
# This is a placeholder migration - replace with actual table definitions
|
||||
pass
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
# TODO: Add table drop statements for production service
|
||||
pass
|
||||
Reference in New Issue
Block a user