clinic/netforce_clinic/migrations/clinic_setting.py

15 lines
336 B
Python

from netforce.model import get_model
from netforce import migration
class Migration(migration.Migration):
_name="clinic.setting"
_version="1.180.0"
def migrate(self):
res=get_model("clinic.setting").search([])
if res:
return
get_model("clinic.setting").create({})
Migration.register()