简化jingrow的hooks文件
This commit is contained in:
parent
7e5ecf79b4
commit
eed34b73e4
@ -1,27 +1,8 @@
|
|||||||
# Copyright (c) 2025, JINGROW and contributors
|
# Copyright (c) 2025, JINGROW
|
||||||
# For license information, please see license.txt
|
|
||||||
|
|
||||||
"""
|
app_name = "jingrow"
|
||||||
Jingrow Local 应用钩子
|
app_title = "Jingrow"
|
||||||
与 SaaS 版完全一致的钩子实现
|
app_publisher = "Jingrow"
|
||||||
"""
|
app_description = "Jingrow"
|
||||||
|
app_email = "support@jingrow.com"
|
||||||
def on_install():
|
app_license = "mit"
|
||||||
"""应用安装时触发"""
|
|
||||||
print("Jingrow Local 应用已安装")
|
|
||||||
|
|
||||||
def on_uninstall():
|
|
||||||
"""应用卸载时触发"""
|
|
||||||
print("Jingrow Local 应用已卸载")
|
|
||||||
|
|
||||||
def on_update():
|
|
||||||
"""应用更新时触发"""
|
|
||||||
print("Jingrow Local 应用已更新")
|
|
||||||
|
|
||||||
def before_migrate():
|
|
||||||
"""数据库迁移前触发"""
|
|
||||||
print("准备数据库迁移")
|
|
||||||
|
|
||||||
def after_migrate():
|
|
||||||
"""数据库迁移后触发"""
|
|
||||||
print("数据库迁移完成")
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user