Commit 259e7da7 authored by Star Neptune R. Sy's avatar Star Neptune R. Sy

fixed a mistake where song duration is represented by a time field

parent d55d5c20
# Generated by Django 3.2 on 2023-02-23 13:03
# Generated by Django 3.2 on 2023-02-23 14:55
import datetime
from django.db import migrations, models
......@@ -18,7 +18,7 @@ class Migration(migrations.Migration):
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('album_name', models.CharField(blank=True, max_length=50, unique=True)),
('description', models.CharField(blank=True, max_length=500, unique=True)),
('release_date', models.DateField(default=datetime.datetime(2023, 2, 23, 21, 3, 39, 527553))),
('release_date', models.DateField(default=datetime.datetime(2023, 2, 23, 22, 55, 7, 657012))),
('label', models.CharField(blank=True, max_length=50, unique=True)),
('song_count', models.IntegerField(blank=True)),
],
......@@ -38,7 +38,7 @@ class Migration(migrations.Migration):
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('song_title', models.CharField(blank=True, max_length=50)),
('song_length', models.TimeField(default=datetime.datetime(2023, 2, 23, 21, 3, 39, 527552))),
('song_length', models.DurationField(default=0)),
('music_video', models.BooleanField(default=False)),
('lyrics', models.TextField(blank=True)),
('album', models.ForeignKey(default='justToMakeItWorkToo', on_delete=django.db.models.deletion.CASCADE, to='about.album')),
......
# Generated by Django 3.2 on 2023-02-23 13:26
# Generated by Django 3.2 on 2023-02-23 14:56
import datetime
from django.db import migrations, models
......@@ -7,18 +7,13 @@ from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('about', '0002_auto_20230223_2103'),
('about', '0002_auto_20230223_2255'),
]
operations = [
migrations.AlterField(
model_name='album',
name='release_date',
field=models.DateField(default=datetime.datetime(2023, 2, 23, 21, 26, 3, 151069)),
),
migrations.AlterField(
model_name='song',
name='song_length',
field=models.TimeField(default=datetime.datetime(2023, 2, 23, 21, 26, 3, 152069)),
field=models.DateField(default=datetime.datetime(2023, 2, 23, 22, 56, 23, 291785)),
),
]
# Generated by Django 3.2 on 2023-02-23 13:28
# Generated by Django 3.2 on 2023-02-23 15:18
import datetime
from django.db import migrations, models
......@@ -7,18 +7,13 @@ from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('about', '0003_auto_20230223_2126'),
('about', '0003_alter_album_release_date'),
]
operations = [
migrations.AlterField(
model_name='album',
name='release_date',
field=models.DateField(default=datetime.datetime(2023, 2, 23, 21, 28, 11, 339665)),
),
migrations.AlterField(
model_name='song',
name='song_length',
field=models.TimeField(default=datetime.datetime(2023, 2, 23, 21, 28, 11, 340672)),
field=models.DateField(default=datetime.datetime(2023, 2, 23, 23, 18, 18, 287630)),
),
]
# Generated by Django 3.2 on 2023-02-23 14:26
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('about', '0004_auto_20230223_2128'),
]
operations = [
migrations.AlterField(
model_name='album',
name='release_date',
field=models.DateField(default=datetime.datetime(2023, 2, 23, 22, 26, 28, 608294)),
),
migrations.AlterField(
model_name='song',
name='song_length',
field=models.TimeField(default=datetime.datetime(2023, 2, 23, 22, 26, 28, 609292)),
),
]
......@@ -41,7 +41,7 @@ class Song(models.Model):
on_delete=models.CASCADE,
default="justToMakeItWorkToo",
)
song_length = models.TimeField(default=datetime.datetime.now())
song_length = models.DurationField(default=0)
music_video = models.BooleanField(default=False)
lyrics = models.TextField(blank=True,)
......
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