Commit 99c84cee authored by Nicholo Pardines's avatar Nicholo Pardines

Reset migrations folder due to migration conflict preventing migration application

parent 3d73e3b5
No preview for this file type
# Generated by Django 4.1.6 on 2023-02-13 14:05 # Generated by Django 4.1.6 on 2023-02-20 07:06
from django.db import migrations, models from django.db import migrations, models
import django.db.models.deletion import django.db.models.deletion
...@@ -18,23 +18,29 @@ class Migration(migrations.Migration): ...@@ -18,23 +18,29 @@ class Migration(migrations.Migration):
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('album_name', models.CharField(max_length=50)), ('album_name', models.CharField(max_length=50)),
('description', models.CharField(max_length=50)), ('description', models.CharField(max_length=50)),
('release_date', models.IntegerField()), ('release_date', models.DateField()),
('label', models.CharField(default='TBA', max_length=60)),
('song_count', models.IntegerField(default=0)),
], ],
), ),
migrations.CreateModel( migrations.CreateModel(
name='Artist', name='Artist',
fields=[ fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('artist_name', models.CharField(max_length=50)), ('artist_name', models.CharField(default='TBA', max_length=50)),
('monthly_listeners', models.IntegerField()), ('birth_name', models.CharField(default='TBA', max_length=50)),
('bio', models.CharField(default='TBA', max_length=700)),
('monthly_listeners', models.IntegerField(default=0)),
], ],
), ),
migrations.CreateModel( migrations.CreateModel(
name='Song', name='Song',
fields=[ fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('song_title', models.CharField(max_length=50)), ('song_title', models.CharField(default='TBA', max_length=50)),
('song_length', models.IntegerField()), ('song_length', models.IntegerField(default=0)),
('music_video', models.BooleanField(default='False')),
('lyrics', models.TextField(default='TBA')),
('album', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='homepage.album')), ('album', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='homepage.album')),
('artist', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='homepage.artist')), ('artist', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='homepage.artist')),
], ],
......
# Generated by Django 4.1.6 on 2023-02-20 06:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homepage', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='album',
name='label',
field=models.CharField(default='TBA', max_length=60),
),
migrations.AddField(
model_name='album',
name='song_count',
field=models.IntegerField(default='TBA'),
),
migrations.AddField(
model_name='artist',
name='bio',
field=models.CharField(default='TBA', max_length=700),
),
migrations.AddField(
model_name='artist',
name='birth_name',
field=models.CharField(default='TBA', max_length=50),
),
migrations.AddField(
model_name='song',
name='lyrics',
field=models.TextField(default='TBA'),
),
migrations.AddField(
model_name='song',
name='music_video',
field=models.BooleanField(default='False'),
),
migrations.AlterField(
model_name='album',
name='release_date',
field=models.DateField(),
),
migrations.AlterField(
model_name='artist',
name='artist_name',
field=models.CharField(default='TBA', max_length=50),
),
migrations.AlterField(
model_name='song',
name='song_title',
field=models.CharField(default='TBA', max_length=50),
),
]
# Generated by Django 4.1.6 on 2023-02-20 06:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homepage', '0002_album_label_album_song_count_artist_bio_and_more'),
]
operations = [
migrations.AlterField(
model_name='album',
name='song_count',
field=models.IntegerField(default=0),
),
]
...@@ -20,7 +20,7 @@ class Artist(models.Model): ...@@ -20,7 +20,7 @@ class Artist(models.Model):
artist_name = models.CharField(max_length=50, default="TBA") artist_name = models.CharField(max_length=50, default="TBA")
birth_name = models.CharField(max_length=50, default="TBA") birth_name = models.CharField(max_length=50, default="TBA")
bio = models.CharField(max_length=700, default="TBA") bio = models.CharField(max_length=700, default="TBA")
monthly_listeners = models.IntegerField() monthly_listeners = models.IntegerField(default=0)
class Album(models.Model): class Album(models.Model):
album_name = models.CharField(max_length=50) album_name = models.CharField(max_length=50)
...@@ -34,6 +34,7 @@ class Song(models.Model): ...@@ -34,6 +34,7 @@ class Song(models.Model):
song_title = models.CharField(max_length=50, default="TBA") song_title = models.CharField(max_length=50, default="TBA")
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(default=0)
music_video = models.BooleanField(default="False") music_video = models.BooleanField(default="False")
lyrics = models.TextField(default="TBA") lyrics = models.TextField(default="TBA")
\ 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