_Hi, everyone! I want to change from ForeignKey to Many-to-Many, but I afraid to break my database. This is my class which I want to change:
class Ninja(models.Model):
id_user = models.OneToOneField(User, on_delete=models.CASCADE, related_name="ninja", blank=True, null=True)
id_team = models.ForeignKey("mission.Team", null=True, blank=True, on_delete=models.SET_NULL)
With this piece of code each user can entry only one team. But I want each user could be in different teams. So, I think I need many-to-many. Hope, I'm right.
The question is: 'If I change my model field like this:
id_team = models.ManyToManyField("mission.Team", null=True, blank=True, on_delete=models.SET_NULL)
will I broke my database with actual data? I have a very negative experience with droping database twice in past. :(