Commit c24c5dab authored by Nate Brevin A. Que's avatar Nate Brevin A. Que

Added music_video and lyrics fields to the Song Model.

parent 9c106e36
# Generated by Django 3.2 on 2023-02-20 04:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homepage', '0003_auto_20230220_1243'),
]
operations = [
migrations.AddField(
model_name='song',
name='lyrics',
field=models.TextField(default=''),
),
migrations.AddField(
model_name='song',
name='music_video',
field=models.BooleanField(default=False),
),
]
...@@ -21,4 +21,6 @@ class Song(models.Model): ...@@ -21,4 +21,6 @@ class Song(models.Model):
song_title = models.CharField(max_length=100) song_title = models.CharField(max_length=100)
artist = models.ForeignKey(Artist, on_delete=models.CASCADE) artist = models.ForeignKey(Artist, on_delete=models.CASCADE)
album = models.ForeignKey(Album, on_delete=models.CASCADE) album = models.ForeignKey(Album, on_delete=models.CASCADE)
song_length = models.IntegerField() song_length = models.IntegerField()
\ No newline at end of file music_video = models.BooleanField(default=False)
lyrics = models.TextField(default="")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment