2014-09-22 11:36:00 +00:00
|
|
|
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([])
|
2014-10-08 09:00:26 +00:00
|
|
|
if not res:
|
|
|
|
get_model("clinic.setting").create({})
|
|
|
|
return
|
2014-09-22 11:36:00 +00:00
|
|
|
|
|
|
|
Migration.register()
|