<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20231005123459 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$entries = [
['title' => 'Listing', 'slug' => 'admin_role_listing', 'route' => 'user/role/list', 'group' => 'Role', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'admin_role_add', 'route' => 'user/role/add/', 'group' => 'Role', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_role_edit', 'route' => 'user/role/edit/', 'group' => 'Role', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'admin_role_delete', 'route' => 'user/role/delete/', 'group' => 'Role', 'desc' => 'description', 'status' => '1'],
['title' => 'Assign Permission', 'slug' => 'admin_role_assign_permission', 'route' => 'role/permissions/*', 'group' => 'Role', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_user_listing', 'route' => 'user/list', 'group' => 'User', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'admin_user_add', 'route' => 'user/add', 'group' => 'User', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_user_edit', 'route' => 'user/edit/', 'group' => 'User', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'admin_user_delete', 'route' => 'user/delete/', 'group' => 'User', 'desc' => 'description', 'status' => '1'],
['title' => 'Assign Permission', 'slug' => 'admin_user_assign_permission', 'route' => 'user/role/permission/', 'group' => 'User', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'app_home_owner_list', 'route' => 'home-owners/index', 'group' => 'Home Owner', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_home_owner_edit', 'route' => 'home-owners/edit/', 'group' => 'Home Owner', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'app_home_owner_delete', 'route' => 'home-owners/index/list/delete/', 'group' => 'Home Owner', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'app_architect_listing', 'route' => 'architect/index', 'group' => 'Architects', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_architect_edit', 'route' => 'architects/edit/', 'group' => 'Architects', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'app_architect_delete', 'route' => 'architects/list/delete/', 'group' => 'Architects', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'app_builder_listing', 'route' => 'builders/index', 'group' => 'Builders', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_builder_edit', 'route' => 'builders/edit/', 'group' => 'Builders', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'app_builder_delete', 'route' => 'builders/list/delete/', 'group' => 'Builders', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'app_showroom_list', 'route' => 'showroom/index', 'group' => 'Showrooms', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_showroom_edit', 'route' => 'showroom/edit/', 'group' => 'Showrooms', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'app_showroom_delete', 'route' => 'showroom/index/delete/', 'group' => 'Showrooms', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'app_interior_designer_listing', 'route' => 'interior-designers/index', 'group' => 'Interior Designers', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_interior_designer_edit', 'route' => 'interior-designers/index/edit/', 'group' => 'Interior Designers', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'app_interior_designer_delete', 'route' => 'interior-designers/index/delete/', 'group' => 'Interior Designers', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'app_master_data_list', 'route' => 'master-data/index', 'group' => 'Master Data', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'app_master_data_create', 'route' => 'master-data/create', 'group' => 'Master Data', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_master_data_edit', 'route' => 'master-data/edit/', 'group' => 'Master Data', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'admin_master_data_delete', 'route' => 'master-data/index/delete/', 'group' => 'Master Data', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_education_category_listing', 'route' => 'education-category/index/', 'group' => 'Education Categories', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'admin_education_category_add', 'route' => 'education-category/add/', 'group' => 'Education Categories', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_education_category_edit', 'route' => 'education-category/edit/', 'group' => 'Education Categories', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'education_category_delete', 'route' => 'education-category/index/delete/', 'group' => 'Education Categories', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_podcast_category_listing', 'route' => 'podcast-category/index/', 'group' => 'Podcast Categories', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'admin_podcast_category_add', 'route' => 'podcast-category/add/', 'group' => 'Podcast Categories', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_podcast_category_edit', 'route' => 'podcast-category/edit/', 'group' => 'Podcast Categories', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'podcast_category_delete', 'route' => 'podcast-category/index/delete/', 'group' => 'Podcast Categories', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_memo_category_listing', 'route' => 'memo-category/index/', 'group' => 'Memo Categories', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'admin_memo_category_add', 'route' => 'memo-category/add/', 'group' => 'Memo Categories', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_memo_category_edit', 'route' => 'memo-category/edit/', 'group' => 'Memo Categories', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'podcast_memo_delete', 'route' => 'memo-category/index/delete/', 'group' => 'Memo Categories', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_resource_category_listing', 'route' => 'resource-category/index/', 'group' => 'Resource Categories', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'admin_resource_category_add', 'route' => 'resource-category/add/', 'group' => 'Resource Categories', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_resource_category_edit', 'route' => 'resource-category/edit/', 'group' => 'Resource Categories', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'podcast_resource_delete', 'route' => 'resource-category/index/delete/', 'group' => 'Resource Categories', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'app_memos_listing', 'route' => 'memos/index', 'group' => 'Memo Management', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'app_memos_add', 'route' => 'memos/index/add', 'group' => 'Memo Management', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_memos_edit', 'route' => 'memos/index/edit/', 'group' => 'Memo Management', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'app_memos_delete', 'route' => 'memos/index/delete/', 'group' => 'Memo Management', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_education_type_listing', 'route' => 'education-type', 'group' => 'Education Types', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'admin_education_type_add', 'route' => 'education-type/add', 'group' => 'Education Types', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_education_type_edit', 'route' => 'education-type/edit/', 'group' => 'Education Types', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'admin_education_type_delete', 'route' => 'education-type/delete/', 'group' => 'Education Types', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_education_listing', 'route' => 'educations/index', 'group' => 'Education Management', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'app_education_add', 'route' => 'education/index/add', 'group' => 'Education Management', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_education_edit', 'route' => 'education/index/edit/', 'group' => 'Education Management', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'app_education_delete', 'route' => 'education/index/delete/', 'group' => 'Education Management', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'app_podcast_listing', 'route' => 'podcast/index', 'group' => 'Podcast Management', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'app_podcast_add', 'route' => 'podcast/index/add', 'group' => 'Podcast Management', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_podcast_edit', 'route' => 'podcast/index/edit/', 'group' => 'Podcast Management', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'app_podcast_delete', 'route' => 'podcast/index/delete/', 'group' => 'Podcast Management', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'app_business_categories_listing', 'route' => 'business_categories/index', 'group' => 'Business Category Management', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'app_business_categories_add', 'route' => 'business_categories/index/add', 'group' => 'Business Category Management', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'app_business_categories_edit', 'route' => 'business_categories/index/edit/', 'group' => 'Business Category Management', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'app_business_categories_delete', 'route' => 'business_categories/index/delete/', 'group' => 'Business Category Management', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_geographic_zone_listing', 'route' => 'geographic-zone/index', 'group' => 'Geographic Zone', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'admin_geographic_zone_add', 'route' => 'geographic-zone/index/add', 'group' => 'Geographic Zone', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_geographic_zone_edit', 'route' => 'geographic-zone/index/edit/', 'group' => 'Geographic Zone', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'admin_geographic_zone_delete', 'route' => 'geographic-zone/index/delete/', 'group' => 'Geographic Zone', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_user_ads_listing', 'route' => 'user-ads/index', 'group' => 'User Ads', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'admin_user_ads_add', 'route' => 'user-ads/index/add', 'group' => 'User Ads', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_user_ads_edit', 'route' => 'user-ads/index/edit/', 'group' => 'User Ads', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'admin_user_ads_delete', 'route' => 'user-ads/index/delete/', 'group' => 'User Ads', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_user_ads_data_listing', 'route' => 'user-ads-data/index', 'group' => 'User Ads Data', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'admin_user_ads_data_add', 'route' => 'user-ads-data/index/add', 'group' => 'User Ads Data', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_user_ads_data_edit', 'route' => 'user-ads-data/index/edit/', 'group' => 'User Ads Data', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'admin_user_ads_data_delete', 'route' => 'user-ads-data/index/delete/', 'group' => 'User Ads Data', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'app_ads_default_images_update', 'route' => 'ads-default/update', 'group' => 'Ads Default Images', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_ads_inquiry_listing', 'route' => 'user-ads/ads-inquiry/index', 'group' => 'User Ads Inquiry', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_ads_inquiry_listing', 'route' => 'email-templates/index', 'group' => 'Email Templates', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'admin_email_templates_add', 'route' => 'email-templates/index/add', 'group' => 'Email Templates', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_email_templates_edit', 'route' => 'email-templates/index/edit/*', 'group' => 'Email Templates', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'admin_email_templates_delete', 'route' => 'email-templates/index/delete/*', 'group' => 'Email Templates', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'app_suplier_categories_listing', 'route' => 'supplier-categories/index', 'group' => 'Supllier Categories', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'app_suplier_categories_add', 'route' => 'supplier-categories/index/add', 'group' => 'Supllier Categories', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'app_suplier_categories_edit', 'route' => 'supplier-categories/index/edit/*', 'group' => 'Supllier Categories', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'app_suplier_categories_delete', 'route' => 'supplier-categories/index/delete/*', 'group' => 'Supllier Categories', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'app_suppliers_list', 'route' => 'supplier-categories/index', 'group' => 'Supllier List', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_supplier_edit', 'route' => 'supplier-categories/index/edit/*', 'group' => 'Supllier List', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'admin_supplier_edit', 'route' => 'supplier-categories/index/delete/*', 'group' => 'Supllier List', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'app_purchasing_groups_categories_listing', 'route' => 'purchasing-groups-categories/index', 'group' => 'Purchasing Groups Categories', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'app_purchasing_groups_categories_add', 'route' => 'purchasing-groups-categories/index/add', 'group' => 'Purchasing Groups Categories', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'app_purchasing_groups_categories_edit', 'route' => 'purchasing-groups-categories/index/edit/*', 'group' => 'Purchasing Groups Categories', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'app_purchasing_groups_categories_delete', 'route' => 'purchasing-groups-categories/index/delete/*', 'group' => 'Purchasing Groups Categories', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'app_purchasing_groups_listing', 'route' => 'purchasing-groups/index', 'group' => 'Purchasing Groups ', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'app_purchasing_groups_categories_add', 'route' => 'purchasing-groups/index/add', 'group' => 'Purchasing Groups ', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'app_purchasing_groups_categories_edit', 'route' => 'purchasing-groups/index/edit/*', 'group' => 'Purchasing Groups ', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'app_purchasing_groups_categories_delete', 'route' => 'purchasing-groups/index/delete/*', 'group' => 'Purchasing Groups ', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_directory_profile_categories_listing', 'route' => 'directory-profile-categories/index', 'group' => 'Directory Profile Categories ', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'admin_directory_profile_categories_add', 'route' => 'directory-profile-categories/index/add', 'group' => 'Directory Profile Categories ', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_directory_profile_categories_edit', 'route' => 'directory-profile-categories/index/edit/*', 'group' => 'Directory Profile Categories ', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'admin_directory_profile_categories_delete', 'route' => 'directory-profile-categories/index/delete/*', 'group' => 'Directory Profile Categories ', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_directory_profile_listing', 'route' => 'directory-profile/index', 'group' => 'Directory Profile', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'admin_directory_profile_add', 'route' => 'directory-profile/index/add', 'group' => 'Directory Profile', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_directory_profile_edit', 'route' => 'directory-profile/index/edit/*', 'group' => 'Directory Profile', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'admin_directory_profile_delete', 'route' => 'directory-profile/index/delete/*', 'group' => 'Directory Profile', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_private_community_listing', 'route' => 'private-community/index', 'group' => 'Private Community ', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_private_community_edit', 'route' => 'private-community/index/edit/*', 'group' => 'Private Community ', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'admin_private_community_delete', 'route' => 'private-community/index/delete/*', 'group' => 'Private Community ', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_community_category_listing', 'route' => 'community-category/index', 'group' => 'Community Categories ', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'admin_private_community_add', 'route' => 'community-category/index/add/*', 'group' => 'Community Categories ', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_private_community_edit', 'route' => 'community-category/index/edit/*', 'group' => 'Community Categories ', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'admin_private_community_delete', 'route' => 'community-category/index/delete/*', 'group' => 'Community Categories ', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_category_group_listing', 'route' => 'community-groups/index', 'group' => 'Community groups ', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'admin_category_group_add', 'route' => 'community-groups/index/add/*', 'group' => 'Community groups ', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_category_group_edit', 'route' => 'community-groups/index/edit/*', 'group' => 'Community Groups ', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'admin_category_group_delete', 'route' => 'community-groups/index/delete/*', 'group' => 'Community Groups ', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_category_tags_listing', 'route' => 'community-tags/index', 'group' => 'Community Tags ', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'admin_category_tags_add', 'route' => 'community-tags/index/add/*', 'group' => 'Community Tags ', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_category_tags_edit', 'route' => 'community-tags/index/edit/*', 'group' => 'Community Tags ', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'admin_category_tags_delete', 'route' => 'community-tags/index/delete/*', 'group' => 'Community Tags ', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_media_kit_listing', 'route' => 'media-kit/index/{id?}', 'group' => 'Media Kit ', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'admin_media_kit_add', 'route' => 'media-kit/index/add/*', 'group' => 'Media Kit ', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_media_kit_edit', 'route' => 'media-kit/index/edit/*', 'group' => 'Media Kit ', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'admin_media_kit_delete', 'route' => 'media-kit/index/delete/*', 'group' => 'Media Kit ', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_media_kit_audit_listing', 'route' => 'media-kit-download', 'group' => 'Media Kit Audit', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'resource_types_listing', 'route' => 'resource-types/index/{id?}', 'group' => 'Resource Types', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'admin_resources_add', 'route' => 'resource-types/index/add/', 'group' => 'Resource Types', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_resources_edit', 'route' => 'resource-types/index/edit/', 'group' => 'Resource Types', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'admin_resources_delete', 'route' => 'resource-types/index/delete/', 'group' => 'Resource Types', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_resources_listing', 'route' => 'resource/index/', 'group' => 'Resources', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_resources_edit', 'route' => 'resource/index/edit/', 'group' => 'Resources', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'admin_resources_delete', 'route' => 'resource/index/delete/', 'group' => 'Resources', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'resource_types_listing', 'route' => 'rating-criteria', 'group' => 'Rating Criteria', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'admin_rating_criteria_add', 'route' => 'rating-criteria/add', 'group' => 'Rating Criteria', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_rating_criteria_edit', 'route' => 'rating-criteria/edit', 'group' => 'Rating Criteria', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'admin_rating_criteria_delete', 'route' => 'rating-criteria/delete', 'group' => 'Rating Criteria', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_general_setting_update', 'route' => 'settings/update', 'group' => 'General Settings', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_contact_us_listing', 'route' => 'contactUs', 'group' => 'Contact Us', 'desc' => 'description', 'status' => '1'],
['title' => 'Reply', 'slug' => 'admin_contact_us_reply', 'route' => 'contactUs/reply', 'group' => 'Contact Us', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'admin_inquiry_delete', 'route' => 'contactUs/deleteInquiry', 'group' => 'Contact Us', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_footer-links_listing', 'route' => 'footer-links/index', 'group' => 'Footer Links', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'admin_footer_links_add', 'route' => 'footer-links/add', 'group' => 'Footer Links', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_footer_links_edit', 'route' => 'footer-links/edit', 'group' => 'Footer Links', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'admin_footer_links_delete', 'route' => 'footer-links/delete', 'group' => 'Footer Links', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_contact_preferences_edit', 'route' => 'contact-preferences', 'group' => 'Contact Us Preferences', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'admin_contact_preferences_add', 'route' => 'contact-preferences/add', 'group' => 'Contact Us Preferences', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_contact_preferences_edit', 'route' => 'contact-preferences/edit', 'group' => 'Contact Us Preferences', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'admin_contact_preferences_delete', 'route' => 'contact-preferences/delete', 'group' => 'Contact Us Preferences', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_cms_page_listing', 'route' => 'cms-page/list', 'group' => 'CMS Pages', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'admin_cms_page_add', 'route' => 'cms-page/create', 'group' => 'CMS Pages', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_cms_page_edit', 'route' => 'cms-page/edit/*', 'group' => 'CMS Pages', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'admin_cms_page_delete', 'route' => 'cms-page/delete/*', 'group' => 'CMS Pages', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_newsletter_listing', 'route' => 'newsletter', 'group' => 'Newsletter', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_subscription_transactions', 'route' => 'subscription/transactions', 'group' => 'Subscription Transactions', 'desc' => 'description', 'status' => '1'],
['title' => 'Listing', 'slug' => 'admin_subscription_plan_listing', 'route' => 'subscription-plan/list', 'group' => 'Subscription Plan', 'desc' => 'description', 'status' => '1'],
['title' => 'Add', 'slug' => 'admin_subscription_plan_add', 'route' => 'subscription-plan/create', 'group' => 'Subscription Plan', 'desc' => 'description', 'status' => '1'],
['title' => 'Edit', 'slug' => 'admin_subscription_plan_edit', 'route' => 'subscription-plan/edit/*', 'group' => 'Subscription Plan', 'desc' => 'description', 'status' => '1'],
['title' => 'Delete', 'slug' => 'admin_subscription_plan_delete', 'route' => 'subscription-plan/delete/*', 'group' => 'Subscription Plan', 'desc' => 'description', 'status' => '1'],
];
foreach ($entries as $entry) {
$existingEntry = $this->connection->fetchAssociative(
'SELECT * FROM permissions WHERE permission_title = :title',
['title' => $entry['title']]
);
if (!$existingEntry) {
$this->addSql('INSERT INTO permissions (permission_title, permission_slug , permission_route,permission_group,permission_description,status,created_at) VALUES (:title, :slug, :route, :group,:desc,:status,CURRENT_TIMESTAMP)', [
'title' => $entry['title'],
'slug' => $entry['slug'],
'route' => $entry['route'],
'group' => $entry['group'],
'desc' => $entry['desc'],
'status' => 1,
]);
}
}
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE permission_user DROP FOREIGN KEY FK_DC5D4DE9FED90CCA');
$this->addSql('ALTER TABLE permission_user DROP FOREIGN KEY FK_DC5D4DE9A76ED395');
$this->addSql('DROP TABLE permission_user');
}
}