-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-> Fix db structure -> Tickets message
- Loading branch information
Showing
11 changed files
with
44 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
26 changes: 13 additions & 13 deletions
26
backend/storage/migrations/2024-12-25-22.04-create-services-categories-features.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
CREATE TABLE IF NOT EXISTS | ||
`mythicalclient_services_categories_features` ( | ||
`id` INT NOT NULL AUTO_INCREMENT, | ||
`name` TEXT NOT NULL , | ||
`category` int(16) NOT NULL, | ||
`description` TEXT NOT NULL, | ||
`enabled` ENUM ('false', 'true') NOT NULL DEFAULT 'false', | ||
`deleted` ENUM ('false', 'true') NOT NULL DEFAULT 'false', | ||
`locked` ENUM ('false', 'true') NOT NULL DEFAULT 'false', | ||
`date` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
PRIMARY KEY (`id`), | ||
FOREIGN KEY (`category`) REFERENCES `mythicalclient_services_categories` (`id`) | ||
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci; | ||
CREATE TABLE | ||
IF NOT EXISTS `mythicalclient_services_categories_features` ( | ||
`id` INT NOT NULL AUTO_INCREMENT, | ||
`name` TEXT NOT NULL, | ||
`category` int (16) NOT NULL, | ||
`description` TEXT NOT NULL, | ||
`enabled` ENUM ('false', 'true') NOT NULL DEFAULT 'false', | ||
`deleted` ENUM ('false', 'true') NOT NULL DEFAULT 'false', | ||
`locked` ENUM ('false', 'true') NOT NULL DEFAULT 'false', | ||
`date` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
PRIMARY KEY (`id`), | ||
FOREIGN KEY (`category`) REFERENCES `mythicalclient_services_categories` (`id`) | ||
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
backend/storage/migrations/2025-01-21-00.16-add-ticket-prio.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ALTER TABLE `mythicalclient_tickets` ADD `priority` ENUM('low','medium','high','urgent') NOT NULL DEFAULT 'low' AFTER `department`; | ||
ALTER TABLE `mythicalclient_tickets` ADD `priority` ENUM ('low', 'medium', 'high', 'urgent') NOT NULL DEFAULT 'low' AFTER `department`; |
8 changes: 7 additions & 1 deletion
8
backend/storage/migrations/2025-01-21-12.50-add-status-tickets.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
ALTER TABLE `mythicalclient_tickets` ADD `status` ENUM('open','closed','waiting','replied','inprogress') NOT NULL DEFAULT 'open' AFTER `priority`; | ||
ALTER TABLE `mythicalclient_tickets` ADD `status` ENUM ( | ||
'open', | ||
'closed', | ||
'waiting', | ||
'replied', | ||
'inprogress' | ||
) NOT NULL DEFAULT 'open' AFTER `priority`; |
13 changes: 13 additions & 0 deletions
13
backend/storage/migrations/2025-01-21-15.04-create-ticket-message.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
CREATE TABLE | ||
`mythicalclient_tickets_messages` ( | ||
`id` INT NOT NULL AUTO_INCREMENT, | ||
`ticket` INT (16) NOT NULL, | ||
`user` varchar(36) NOT NULL, | ||
`message` TEXT NOT NULL, | ||
`deleted` ENUM ('false', 'true') NOT NULL DEFAULT 'false', | ||
`locked` ENUM ('false', 'true') NOT NULL DEFAULT 'false', | ||
`date` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
PRIMARY KEY (`id`), | ||
FOREIGN KEY (`ticket`) REFERENCES `mythicalclient_tickets`(`id`), | ||
FOREIGN KEY (`user`) REFERENCES `mythicalclient_users`(`uuid`) | ||
) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; |