I have a table where events organized by a sports center are stored. I created it like this:
create table events(
name varchar(20) primary key,
description varchar(150),
type varchar(20) not null,
event_date not null,
event_start time not null,
event_end time not null,
room_name varchar(20) not null,
foreign key(room_name) references rooms(name) on update cascade on delete cascade);
now I have realized that events with the same name can exist as long as they are not on the same day. For example, a swimming competition can be held several times in a month and still have the same name. How can I modify the table so that the primary key is made up of name and date without having to delete and re-create the table?