Skip to content

Commit

Permalink
admin menu : customer contacts
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyecommerce committed Jun 10, 2020
1 parent a494c12 commit 69192d0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions migrations/mysqldb/m200608_081516_fecshop_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,22 @@ public function safeUp()
foreach ($arr as $sql) {
$this->execute($sql);
}

// 1
$this->execute("INSERT INTO `admin_url_key` (`name`, `tag`, `tag_sort_order`, `url_key`, `created_at`, `updated_at`, `can_delete`) VALUES ('Customer Contacts List', 'customer_contacts', 1, '/customer/contacts/index', 1591670263, 1591670263, 1)");

$lastInsertId = $this->db->getLastInsertID() ;

$this->execute("INSERT INTO `admin_role_url_key` (`role_id`, `url_key_id`, `created_at`, `updated_at`) VALUES (4, " . $lastInsertId . ", 1585655278, 1585655278)");


// 2
$this->execute("INSERT INTO `admin_url_key` (`name`, `tag`, `tag_sort_order`, `url_key`, `created_at`, `updated_at`, `can_delete`) VALUES ('Customer Contacts View', 'customer_contacts', 2, '/customer/contacts/manageredit', 1591670290, 1591670290, 1)");

$lastInsertId = $this->db->getLastInsertID() ;

$this->execute("INSERT INTO `admin_role_url_key` (`role_id`, `url_key_id`, `created_at`, `updated_at`) VALUES (4, " . $lastInsertId . ", 1585655278, 1585655278)");

}

/**
Expand Down

0 comments on commit 69192d0

Please sign in to comment.