Skip to content

Commit

Permalink
fix(sql): remove duplicate statement (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
femboydev committed Jul 17, 2024
1 parent 7f4817c commit 251e1dd
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions sql/install.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;

/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
/*!40111 SET @OLD_SQL_NOTES=@@NOTE_VERBOSITY, NOTE_VERBOSITY=0 */;

CREATE DATABASE IF NOT EXISTS `overextended` DEFAULT CHARACTER
SET utf8mb4 COLLATE utf8mb4_unicode_ci;
Expand Down Expand Up @@ -208,15 +208,10 @@ CREATE TABLE IF NOT EXISTS `accounts_transactions` (
CONSTRAINT `accounts_transactions_toId_fk` FOREIGN KEY (`toId`) REFERENCES `accounts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
);

ALTER TABLE `ox_group_grades`
ADD COLUMN IF NOT EXISTS `accountRole` VARCHAR(50) NULL DEFAULT NULL AFTER `label`,
ADD CONSTRAINT `FK_ox_group_grades_account_roles` FOREIGN KEY (`accountRole`) REFERENCES `account_roles` (`name`) ON UPDATE CASCADE ON DELETE CASCADE;


/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;

/*!40014 SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS, 1) */;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;

/*!40111 SET SQL_NOTES=IFNULL(@OLD_SQL_NOTES, 1) */;
/*!40111 SET NOTE_VERBOSITY=IFNULL(@OLD_SQL_NOTES, 1) */;

0 comments on commit 251e1dd

Please sign in to comment.