update mooc/models/__init__.py.
Signed-off-by: Basyc <12016870+basyc@user.noreply.gitee.com>
This commit is contained in:
parent
1df5aefac3
commit
6341a1546e
@ -81,6 +81,35 @@ from mooc.models.users import (
|
||||
UsersFounderOwnUsersGroups
|
||||
)
|
||||
|
||||
from mooc.models.mc import{
|
||||
McCreditsRecharge,
|
||||
McCashRecord,
|
||||
McChatsRecord,
|
||||
McMappingFans,
|
||||
McMassRecord,
|
||||
McCreditsRecord,
|
||||
MCFansGroups,
|
||||
McMembers,
|
||||
MCFansTag,
|
||||
MCFansTagMapping,
|
||||
MCGroups,
|
||||
MCHandsel,
|
||||
McMemberAddress,
|
||||
McMemberFields,
|
||||
McMemberProperty,
|
||||
McOauthFans
|
||||
}
|
||||
from mooc.models.modules{
|
||||
IMSModulesBindings,
|
||||
IMSModulesCloud,
|
||||
Modules,
|
||||
IMSModulesIgnore,
|
||||
IMSModulesPlugin,
|
||||
IMSModulesPluginRank,
|
||||
IMSModulesRank,
|
||||
IMSModulesRecycle,
|
||||
}
|
||||
|
||||
def verify_all_models():
|
||||
"""验证所有模型是否已正确注册到Base.metadata"""
|
||||
from mooc.db.database import Base
|
||||
@ -204,6 +233,33 @@ def verify_all_models():
|
||||
"ims_goouc_fullexam_user_special",
|
||||
"ims_goouc_fullexam_user_spequence",
|
||||
"ims_goouc_fullexam_user_wrong_praction",
|
||||
#part 4
|
||||
"ims_modules_bindings",
|
||||
"ims_modules_cloud",
|
||||
"ims_modules",
|
||||
"ims_modules_ignore",
|
||||
"ims_modules_plugin",
|
||||
"ims_modules_plugin_rank",
|
||||
"ims_modules_rank",
|
||||
"ims_modules_recycle",
|
||||
|
||||
"ims_mc_credits_recharge",
|
||||
"ims_mc_cash_record",
|
||||
"ims_mc_chats_record",
|
||||
"ims_mc_mapping_fans",
|
||||
"ims_mc_mass_record",
|
||||
"ims_mc_credits_record",
|
||||
"ims_mc_fans_groups",
|
||||
"ims_mc_members",
|
||||
"ims_mc_fans_tag",
|
||||
"ims_mc_fans_tag_mapping",
|
||||
"ims_mc_groups",
|
||||
"ims_mc_handsel",
|
||||
"ims_mc_member_address",
|
||||
"ims_mc_member_fields",
|
||||
"ims_mc_member_property",
|
||||
"ims_mc_oauth_fans",
|
||||
|
||||
}
|
||||
|
||||
actual_tables = set(Base.metadata.tables.keys())
|
||||
|
Loading…
Reference in New Issue
Block a user