Пример #1
0
def main():
    dump_data(
        os.path.join(JSONDIR, 'last_update'),
        [{'appname': APPNAME}]
    )
    save('sa', [
        ['last_update', 'AppDataLastUpdate', {'before_delete': {'appname': APPNAME}}],
    ])
Пример #2
0
def main():
    save(APPNAME, MODELS)
Пример #3
0
def main():
    relations = [
        ['changes', 'Change', {}],
    ]
    save(APPNAME, relations)
    return
Пример #4
0
def main():
    relations = [
        ['configs', 'PortConfig',  {'before_delete_all': True}],
    ]
    save(APPNAME, relations)
    return
Пример #5
0
def main():
    relations = [["portlog", "Portlog", {}], ["fabriclog", "Fabriclog", {}]]
    save(APPNAME, relations)
    return
Пример #6
0
def main():
    relations = [
        ['volumes_changes', 'VolumeChange', {}],
    ]
    save(APPNAME, relations)
    return