6361b892209e48dfff7ae2ca7fca74d2a470aecf,torcms/script/script_init_tabels.py,,run_migrate,#,58
Before Change
torcms_migrator.add_column("tabentity2user", "user_ip",
user_ip_field))
// print("添加字段成功:user_ip.")
except:
pass
view_count_1d = migrate.IntegerField(default=0, help_text="24小时内阅读量")
After Change
try:
migrate.migrate(
torcms_migrator.add_column("tabpost", "access_1d", view_count_1d))
except Exception as err:
print(repr(err))
view_count_7d = migrate.IntegerField(default=0, help_text="7*24小时内阅读量")
try:
migrate.migrate(
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 4
Instances
Project Name: bukun/TorCMS
Commit Name: 6361b892209e48dfff7ae2ca7fca74d2a470aecf
Time: 2021-01-20
Author: bukun@osgeo.cn
File Name: torcms/script/script_init_tabels.py
Class Name:
Method Name: run_migrate
Project Name: bukun/TorCMS
Commit Name: 6361b892209e48dfff7ae2ca7fca74d2a470aecf
Time: 2021-01-20
Author: bukun@osgeo.cn
File Name: torcms/script/script_init_tabels.py
Class Name:
Method Name: create_table
Project Name: bukun/TorCMS
Commit Name: 6361b892209e48dfff7ae2ca7fca74d2a470aecf
Time: 2021-01-20
Author: bukun@osgeo.cn
File Name: helper_scripts/script_meta_xlsx_export.py
Class Name:
Method Name: export_data
Project Name: bukun/TorCMS
Commit Name: 6361b892209e48dfff7ae2ca7fca74d2a470aecf
Time: 2021-01-20
Author: bukun@osgeo.cn
File Name: torcms/script/script_drop_tabels.py
Class Name:
Method Name: drop_the_table
Project Name: bukun/TorCMS
Commit Name: 6361b892209e48dfff7ae2ca7fca74d2a470aecf
Time: 2021-01-20
Author: bukun@osgeo.cn
File Name: torcms/core/tool/sqlite_helper.py
Class Name: MAcces
Method Name: add