Full-width GE-Enforce pages; asset column no longer echoes the host
This commit is contained in:
28
plugins/geenforce/migrations/versions/0003_report_subtype.py
Normal file
28
plugins/geenforce/migrations/versions/0003_report_subtype.py
Normal file
@@ -0,0 +1,28 @@
|
||||
"""Record the display subtype a PC reports for itself.
|
||||
|
||||
A kiosk knows whether it is a Dashboard, Lobby or 3DPrintRoom - the dispatcher
|
||||
reads C:\\Enrollment\\display-type.txt to pick its target - but it never told
|
||||
ShopDB, so the reports table had to infer it from the DashboardDefault
|
||||
fqdn/ip mapping, which is blank unless someone added a row per kiosk. Reported
|
||||
by the device beats inferred from a mapping table, the same way enforcerversion
|
||||
already works.
|
||||
|
||||
Revision ID: geenforce0003subtype
|
||||
Revises: geenforce0002blobs
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
revision = 'geenforce0003subtype'
|
||||
down_revision = 'geenforce0002blobs'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.add_column('manifestenforcementreports',
|
||||
sa.Column('subtype', sa.String(length=50), nullable=True))
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.drop_column('manifestenforcementreports', 'subtype')
|
||||
Reference in New Issue
Block a user