db0_reports.py 343 Bytes
Newer Older
1 2 3 4 5
# -*- coding: utf-8 -*-
""" reports

"""
db.define_table("reports",
6
    Field("type", "string", length=255, notnull=True, unique=True),
7 8
    migrate="reports.table")

9 10 11
db.reports._before_delete.append(INHIBIT_CASCADE_DELETE)
db.reports._before_delete.append(dbui.INHIBIT_DELETE_UNDEF)
db.reports._before_update.append(dbui.INHIBIT_UPDATE_UNDEF)