Commit 0228ee43 authored by Eldon Dagdag's avatar Eldon Dagdag

Migrated models from About to Homepage App

parent adec85a4
# Generated by Django 3.2 on 2023-02-13 12:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('about', '0001_initial'),
]
operations = [
migrations.DeleteModel(
name='Album',
),
migrations.DeleteModel(
name='Artist',
),
migrations.DeleteModel(
name='Song',
),
]
from django.db import models
class Artist(models.Model):
artist_name = models.CharField(max_length=100)
monthly_listeners = models.IntegerField()
class Album(models.Model):
album_name = models.CharField(max_length=100)
artist = models.CharField(max_length=100)
description = models.CharField(max_length=500)
release_date = models.DateField()
class Song(models.Model):
song_title = models.CharField(max_length=100)
artist = models.CharField(max_length=100)
album = models.CharField(max_length=100)
song_length = models.IntegerField()
# Create your models here.
# Generated by Django 3.2 on 2023-02-13 12:44
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Album',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('album_name', models.CharField(max_length=100)),
('artist', models.CharField(max_length=100)),
('description', models.CharField(max_length=500)),
('release_date', models.DateField()),
],
),
migrations.CreateModel(
name='Artist',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('artist_name', models.CharField(max_length=100)),
('monthly_listeners', models.IntegerField()),
],
),
migrations.CreateModel(
name='Song',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('song_title', models.CharField(max_length=100)),
('artist', models.CharField(max_length=100)),
('album', models.CharField(max_length=100)),
('song_length', models.IntegerField()),
],
),
]
from django.db import models
class Artist(models.Model):
artist_name = models.CharField(max_length=100)
monthly_listeners = models.IntegerField()
class Album(models.Model):
album_name = models.CharField(max_length=100)
artist = models.CharField(max_length=100)
description = models.CharField(max_length=500)
release_date = models.DateField()
class Song(models.Model):
song_title = models.CharField(max_length=100)
artist = models.CharField(max_length=100)
album = models.CharField(max_length=100)
song_length = models.IntegerField()
# Create your models here.
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