<?php
$tables = [
[
'oldName' => 'Address',
'newName' => 'address',
],
[
'oldName' => 'Agent',
'newName' => 'agent',
],
[
'oldName' => 'AgentType',
'newName' => 'agent_type',
],
[
'oldName' => 'BoughtServiceVariant',
'newName' => 'bought_service_variant',
],
[
'oldName' => 'Brigade',
'newName' => 'brigade',
],
[
'oldName' => 'Communication',
'newName' => 'communication',
],
[
'oldName' => 'CommunicationMessage',
'newName' => 'communication_message',
],
[
'oldName' => 'CommunicationRelation',
'newName' => 'communication_relation',
],
[
'oldName' => 'Company',
'newName' => 'company',
],
[
'oldName' => 'CompanyOffice',
'newName' => 'company_office',
],
[
'oldName' => 'companyoffice_contact',
'newName' => 'company_office_contact',
],
[
'oldName' => 'CompanyOwnership',
'newName' => 'company_ownership',
],
[
'oldName' => 'CompanySize',
'newName' => 'company_size',
],
[
'oldName' => 'CompanyType',
'newName' => 'company_type',
],
[
'oldName' => 'Contact',
'newName' => 'contact',
],
[
'oldName' => 'ContactType',
'newName' => 'contact_type',
],
[
'oldName' => 'Contract',
'newName' => 'contract',
],
[
'oldName' => 'Country',
'newName' => 'country',
],
[
'oldName' => 'Currency',
'newName' => 'currency',
],
[
'oldName' => 'DenyReason',
'newName' => 'deny_reason',
],
[
'oldName' => 'Duty',
'newName' => 'duty',
],
[
'oldName' => 'EducationLevel',
'newName' => 'education_level',
],
[
'oldName' => 'Event',
'newName' => 'event',
],
[
'oldName' => 'ExperienceLevel',
'newName' => 'experience_level',
],
[
'oldName' => 'Feedback',
'newName' => 'feedback',
],
[
'oldName' => 'FeedbackType',
'newName' => 'feedback_type',
],
[
'oldName' => 'Folder',
'newName' => 'folder',
],
[
'oldName' => 'FolderItem',
'newName' => 'folder_item',
],
[
'oldName' => 'Gender',
'newName' => 'gender',
],
[
'oldName' => 'Intro',
'newName' => 'intro',
],
[
'oldName' => 'IntroStep',
'newName' => 'intro_step',
],
[
'oldName' => 'Label',
'newName' => 'label',
],
[
'oldName' => 'Language',
'newName' => 'language',
],
[
'oldName' => 'LanguageLevel',
'newName' => 'language_level',
],
[
'oldName' => 'Location',
'newName' => 'location',
],
[
'oldName' => 'Notification',
'newName' => 'notification',
],
[
'oldName' => 'NotificationType',
'newName' => 'notification_type',
],
[
'oldName' => 'OpeningHours',
'newName' => 'opening_hours',
],
[
'oldName' => 'Page',
'newName' => 'page',
],
[
'oldName' => 'PageService',
'newName' => 'page_service',
],
[
'oldName' => 'PageUrlParameter',
'newName' => 'page_url_parameter',
],
[
'oldName' => 'Portfolio',
'newName' => 'portfolio',
],
[
'oldName' => 'PortfolioGroup',
'newName' => 'portfolio_group',
],
[
'oldName' => 'PortfolioItem',
'newName' => 'portfolio_item',
],
[
'oldName' => 'Profession',
'newName' => 'profession',
],
[
'oldName' => 'ReleaseState',
'newName' => 'release_state',
],
[
'oldName' => 'Resume',
'newName' => 'resume',
],
[
'oldName' => 'ResumeCertificate',
'newName' => 'resume_certificate',
],
[
'oldName' => 'ResumeEducation',
'newName' => 'resume_education',
],
[
'oldName' => 'ResumeExperience',
'newName' => 'resume_experience',
],
[
'oldName' => 'ResumeLanguage',
'newName' => 'resume_language',
],
[
'oldName' => 'ResumeSkill',
'newName' => 'resume_skill',
],
[
'oldName' => 'SearchInterval',
'newName' => 'search_interval',
],
[
'oldName' => 'Service',
'newName' => 'service',
],
[
'oldName' => 'ServiceCountry',
'newName' => 'service_country',
],
[
'oldName' => 'ServicePack',
'newName' => 'service_pack',
],
[
'oldName' => 'ServicePackPrice',
'newName' => 'service_pack_price',
],
[
'oldName' => 'servicepack_servicevariant',
'newName' => 'service_pack_service_variant',
],
[
'oldName' => 'ServicePrice',
'newName' => 'service_price',
],
[
'oldName' => 'ServiceVariant',
'newName' => 'service_variant',
],
[
'oldName' => 'Setting',
'newName' => 'setting',
],
[
'oldName' => 'SkillLevel',
'newName' => 'skill_level',
],
[
'oldName' => 'Specification',
'newName' => 'specification',
],
[
'oldName' => 'Test',
'newName' => 'test',
],
[
'oldName' => 'Tooltip',
'newName' => 'tooltip',
],
[
'oldName' => 'UsedServiceVariant',
'newName' => 'used_service_variant',
],
[
'oldName' => 'User',
'newName' => 'user',
],
[
'oldName' => 'UserRole',
'newName' => 'user_role',
],
[
'oldName' => 'user_userrole',
'newName' => 'user_user_role',
],
[
'oldName' => 'Vacancy',
'newName' => 'vacancy',
],
[
'oldName' => 'VacancyBlock',
'newName' => 'vacancy_block',
],
[
'oldName' => 'VisitLog',
'newName' => 'visit_log',
],
[
'oldName' => 'Voucher',
'newName' => 'voucher',
],
[
'oldName' => 'VoucherItem',
'newName' => 'voucher_item',
],
[
'oldName' => 'Widget',
'newName' => 'widget',
],
[
'oldName' => 'WidgetArea',
'newName' => 'widget_area',
]
];
$data = [];
foreach ($tables as $table) {
$data[] = "'$table[oldName]' => '$table[newName]'";
}
echo implode(",\n", $data);
preferences:
41.4 ms | 402 KiB | 5 Q