Skip to content

Commit

Permalink
attempt to fix duplicate check constraint name error for city_length
Browse files Browse the repository at this point in the history
  • Loading branch information
creme332 committed Apr 18, 2024
1 parent 3ff1b72 commit 2f0f546
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/database/dump/cafe.sql
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ CREATE TABLE `client` (
KEY `client_district_district_id_fk` (`district_id`),
CONSTRAINT `client_district_district_id_fk` FOREIGN KEY (`district_id`) REFERENCES `district` (`district_id`) ON UPDATE CASCADE,
CONSTRAINT `client_fk` FOREIGN KEY (`user_id`) REFERENCES `user` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `city_length` CHECK (char_length(`city`) > 2),
CONSTRAINT `street_length` CHECK (char_length(`street`) > 3)
CONSTRAINT `street_length` CHECK (char_length(`street`) > 3),
CONSTRAINT `client_city_length` CHECK (char_length(`city`) > 2)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

Expand Down Expand Up @@ -330,4 +330,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2024-04-09 11:14:04
-- Dump completed on 2024-04-18 13:13:42

0 comments on commit 2f0f546

Please sign in to comment.