Database created, compound primary keys not working

Qt creates the database, but setting up compound primary keys is not
working. The table Major was successfully populated