Skip to content

Commit

Permalink
DROP TABLE IF EXISTS
Browse files Browse the repository at this point in the history
  • Loading branch information
DawoudIO committed Oct 17, 2020
1 parent 857c759 commit a8e198d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/mysql/upgrade/4.2.0-perms.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
--
-- Table structure for table `permissions`
--
DROP TABLE IF EXISTS `permissions`;

CREATE TABLE `permissions` (
`permission_id` int(11) NOT NULL,
Expand Down Expand Up @@ -38,6 +39,7 @@ INSERT INTO `permissions` (`permission_id`, `permission_name`, `permission_desc`
-- Table structure for table `person_permission`
--

DROP TABLE IF EXISTS `person_permission`;
CREATE TABLE `person_permission` (
`per_id` int(11) NOT NULL,
`permission_id` int(11) NOT NULL
Expand All @@ -48,7 +50,7 @@ CREATE TABLE `person_permission` (
--
-- Table structure for table `person_roles`
--

DROP TABLE IF EXISTS `person_roles`;
CREATE TABLE `person_roles` (
`per_id` int(11) NOT NULL,
`role_id` int(11) NOT NULL
Expand All @@ -59,7 +61,7 @@ CREATE TABLE `person_roles` (
--
-- Table structure for table `roles`
--

DROP TABLE IF EXISTS `roles`;
CREATE TABLE `roles` (
`role_id` int(11) NOT NULL,
`role_name` varchar(50) NOT NULL,
Expand Down

0 comments on commit a8e198d

Please sign in to comment.