domain: server
language: python
class Task class
Use copy_database
to copy database data when migrating to another database.
in the following code when the project task tree is created the application copies the data from the demo.sqlite database to the project database:
from jam.db.db_modules import SQLITE
def on_created(task):
task.copy_database(SQLITE, '/home/work/demo/demo.sqlite')