From 53f78853d92eabc660770c7faf1d6c22be823db2 Mon Sep 17 00:00:00 2001 From: Chris Shyi Date: Fri, 8 Jun 2018 20:59:27 -0400 Subject: [PATCH 1/3] Delete 0001_initial.py --- spotifyvis/migrations/0001_initial.py | 79 --------------------------- 1 file changed, 79 deletions(-) delete mode 100644 spotifyvis/migrations/0001_initial.py diff --git a/spotifyvis/migrations/0001_initial.py b/spotifyvis/migrations/0001_initial.py deleted file mode 100644 index fb92c44..0000000 --- a/spotifyvis/migrations/0001_initial.py +++ /dev/null @@ -1,79 +0,0 @@ -# Generated by Django 2.0.5 on 2018-06-07 00:52 - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - ] - - operations = [ - migrations.CreateModel( - name='Artist', - fields=[ - ('artist_id', models.CharField(max_length=30, primary_key=True, serialize=False)), - ('name', models.CharField(max_length=50, unique=True)), - ('genre', models.CharField(max_length=20)), - ], - options={ - 'verbose_name': 'Artist', - 'verbose_name_plural': 'Artists', - }, - ), - migrations.CreateModel( - name='Track', - fields=[ - ('track_id', models.CharField(max_length=30, primary_key=True, serialize=False)), - ('year', models.PositiveSmallIntegerField()), - ('popularity', models.PositiveSmallIntegerField()), - ('runtime', models.PositiveSmallIntegerField()), - ('name', models.CharField(max_length=75)), - ], - options={ - 'verbose_name': 'Track', - 'verbose_name_plural': 'Tracks', - }, - ), - migrations.CreateModel( - name='User', - fields=[ - ('user_id', models.CharField(max_length=30, primary_key=True, serialize=False)), - ], - options={ - 'verbose_name': 'User', - 'verbose_name_plural': 'Users', - }, - ), - migrations.CreateModel( - name='AudioFeatures', - fields=[ - ('track', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='spotifyvis.Track')), - ('acousticness', models.DecimalField(decimal_places=3, max_digits=3)), - ('danceability', models.DecimalField(decimal_places=3, max_digits=3)), - ('energy', models.DecimalField(decimal_places=3, max_digits=3)), - ('instrumentalness', models.DecimalField(decimal_places=3, max_digits=3)), - ('loudness', models.DecimalField(decimal_places=3, max_digits=6)), - ('speechiness', models.DecimalField(decimal_places=3, max_digits=3)), - ('tempo', models.DecimalField(decimal_places=3, max_digits=6)), - ('valence', models.DecimalField(decimal_places=3, max_digits=3)), - ], - options={ - 'verbose_name': 'AudioFeatures', - 'verbose_name_plural': 'AudioFeatures', - }, - ), - migrations.AddField( - model_name='track', - name='artists', - field=models.ManyToManyField(blank=True, to='spotifyvis.Artist'), - ), - migrations.AddField( - model_name='track', - name='users', - field=models.ManyToManyField(blank=True, to='spotifyvis.User'), - ), - ] From d995a1544442854ce8004b44d66c9a867912e1f4 Mon Sep 17 00:00:00 2001 From: Chris Shyi Date: Fri, 8 Jun 2018 20:59:34 -0400 Subject: [PATCH 2/3] Delete 0002_auto_20180608_2002.py --- .../migrations/0002_auto_20180608_2002.py | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 spotifyvis/migrations/0002_auto_20180608_2002.py diff --git a/spotifyvis/migrations/0002_auto_20180608_2002.py b/spotifyvis/migrations/0002_auto_20180608_2002.py deleted file mode 100644 index b7e48e7..0000000 --- a/spotifyvis/migrations/0002_auto_20180608_2002.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 2.0.5 on 2018-06-09 00:02 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('spotifyvis', '0001_initial'), - ] - - operations = [ - migrations.AlterField( - model_name='artist', - name='genre', - field=models.CharField(max_length=30), - ), - ] From ef7933fb6742324882dd5d1b2509f4d8811e982f Mon Sep 17 00:00:00 2001 From: Chris Shyi Date: Fri, 8 Jun 2018 20:59:42 -0400 Subject: [PATCH 3/3] Delete 0003_auto_20180608_2007.py --- .../migrations/0003_auto_20180608_2007.py | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 spotifyvis/migrations/0003_auto_20180608_2007.py diff --git a/spotifyvis/migrations/0003_auto_20180608_2007.py b/spotifyvis/migrations/0003_auto_20180608_2007.py deleted file mode 100644 index 323ca26..0000000 --- a/spotifyvis/migrations/0003_auto_20180608_2007.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 2.0.5 on 2018-06-09 00:07 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('spotifyvis', '0002_auto_20180608_2002'), - ] - - operations = [ - migrations.AlterField( - model_name='track', - name='name', - field=models.CharField(max_length=150), - ), - ]