17 lines
384 B
Python
17 lines
384 B
Python
# Copyright (c) 2020, Jingrow Technologies Pvt. Ltd. and Contributors
|
|
# For license information, please see license.txt
|
|
|
|
|
|
import jingrow
|
|
|
|
|
|
def execute():
|
|
jingrow.reload_pg("jcloude", "pagetype", "site_backup")
|
|
jingrow.db.sql(
|
|
"""
|
|
UPDATE `tabSite Backup`
|
|
SET `database_file` = `database`, `database_url` = `url`, `database_size` = `size`
|
|
WHERE `database` IS NOT NULL
|
|
"""
|
|
)
|