renamed: ItemContent::meta_admin -> ItemContent::admin_meta
This commit is contained in:
@@ -61,35 +61,36 @@ void Item::fields()
|
||||
|
||||
int type_helper = static_cast<int>(type);
|
||||
|
||||
field(L"id", id, morm::FT::no_insertable | morm::FT::no_updatable | morm::FT::primary_key);
|
||||
field(L"parent_id", parent_id);
|
||||
field(L"type", type_helper);
|
||||
field(L"url", url);
|
||||
field(L"subject", subject);
|
||||
field(L"template", html_template);
|
||||
field(L"sort_index", sort_index);
|
||||
field(L"content_id", L"content", item_content, morm::FT::foreign_key);
|
||||
field(L"id", id, morm::FT::no_insertable | morm::FT::no_updatable | morm::FT::primary_key);
|
||||
field(L"parent_id", parent_id);
|
||||
field(L"type", type_helper);
|
||||
field(L"url", url);
|
||||
field(L"subject", subject);
|
||||
field(L"template", html_template);
|
||||
field(L"sort_index", sort_index);
|
||||
field(L"content_id", L"content", item_content, morm::FT::foreign_key);
|
||||
|
||||
field(L"dir_link", &Item::dir_link);
|
||||
field(L"link", &Item::link);
|
||||
field(L"is_parent_for_current_dir", &Item::is_parent_for_current_dir);
|
||||
field(L"is_current_dir", &Item::is_current_dir);
|
||||
field(L"is_root_dir", &Item::is_root_dir);
|
||||
field(L"dir_link", &Item::dir_link);
|
||||
field(L"link", &Item::link);
|
||||
|
||||
field(L"type_is_symlink", &Item::type_is_symlink);
|
||||
field(L"type_is_file", &Item::type_is_file);
|
||||
field(L"type_is_dir", &Item::type_is_dir);
|
||||
field(L"type_is_none", &Item::type_is_none);
|
||||
field(L"is_parent_for_current_dir", &Item::is_parent_for_current_dir);
|
||||
field(L"is_current_dir", &Item::is_current_dir);
|
||||
field(L"is_root_dir", &Item::is_root_dir);
|
||||
|
||||
field(L"url_is", &Item::url_is);
|
||||
field(L"type_is_symlink", &Item::type_is_symlink);
|
||||
field(L"type_is_file", &Item::type_is_file);
|
||||
field(L"type_is_dir", &Item::type_is_dir);
|
||||
field(L"type_is_none", &Item::type_is_none);
|
||||
|
||||
field(L"can_be_removed", &Item::can_be_removed);
|
||||
field(L"has_read_access", &Item::has_read_access);
|
||||
field(L"has_write_access", &Item::has_write_access);
|
||||
field(L"has_read_write_access", &Item::has_read_write_access);
|
||||
field(L"has_read_exec_access", &Item::has_read_exec_access);
|
||||
field(L"url_is", &Item::url_is);
|
||||
|
||||
field(L"execute", &Item::execute);
|
||||
field(L"can_be_removed", &Item::can_be_removed);
|
||||
field(L"has_read_access", &Item::has_read_access);
|
||||
field(L"has_write_access", &Item::has_write_access);
|
||||
field(L"has_read_write_access", &Item::has_read_write_access);
|
||||
field(L"has_read_exec_access", &Item::has_read_exec_access);
|
||||
|
||||
field(L"execute", &Item::execute);
|
||||
|
||||
|
||||
// may we should add a method setTypeFromInt(int t)?
|
||||
@@ -285,16 +286,7 @@ bool Item::do_migration_to_3()
|
||||
};
|
||||
|
||||
size_t len = sizeof(str) / sizeof(const char*);
|
||||
|
||||
for(size_t i=0 ; i < len ; ++i)
|
||||
{
|
||||
if( !db_query(str[i]) )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
return db_query(str, len);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user