Skip to content

Commit

Permalink
change failing request
Browse files Browse the repository at this point in the history
  • Loading branch information
smadbe authored and GeoffreyHuck committed Aug 16, 2023
1 parent 9bf6e77 commit fd2b561
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ CREATE TABLE `user_batches` (
`creator_id` BIGINT(20) DEFAULT NULL,
`created_at` DATETIME NOT NULL DEFAULT NOW(),
PRIMARY KEY (`group_prefix`, `custom_prefix`),
CONSTRAINT `ck_user_batches_custom_prefix` CHECK (BINARY `custom_prefix` REGEXP '^[a-z0-9-]+$'),
CONSTRAINT `ck_user_batches_custom_prefix` CHECK (CAST(`custom_prefix` AS BINARY) REGEXP BINARY '^[a-z0-9-]+$'),
CONSTRAINT `fk_user_batches_group_prefix_user_batch_prefixes_group_prefix`
FOREIGN KEY (`group_prefix`) REFERENCES `user_batch_prefixes`(`group_prefix`) ON DELETE RESTRICT,
CONSTRAINT `fk_user_batches_creator_id_users_group_id`
Expand Down

0 comments on commit fd2b561

Please sign in to comment.