Delete all migrations and start anew
Deleted all migrations and started anew to incorporate changes in models.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
# Generated by Django 2.0.5 on 2018-06-07 00:52
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
@@ -18,8 +20,8 @@ class Migration(migrations.Migration):
|
||||
('genre', models.CharField(max_length=20)),
|
||||
],
|
||||
options={
|
||||
'verbose_name_plural': 'Artists',
|
||||
'verbose_name': 'Artist',
|
||||
'verbose_name_plural': 'Artists',
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
@@ -32,8 +34,8 @@ class Migration(migrations.Migration):
|
||||
('name', models.CharField(max_length=75)),
|
||||
],
|
||||
options={
|
||||
'verbose_name_plural': 'Tracks',
|
||||
'verbose_name': 'Track',
|
||||
'verbose_name_plural': 'Tracks',
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
@@ -42,26 +44,26 @@ class Migration(migrations.Migration):
|
||||
('user_id', models.CharField(max_length=30, primary_key=True, serialize=False)),
|
||||
],
|
||||
options={
|
||||
'verbose_name_plural': 'Users',
|
||||
'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')),
|
||||
('danceability', models.DecimalField(decimal_places=2, max_digits=2)),
|
||||
('energy', models.DecimalField(decimal_places=2, max_digits=2)),
|
||||
('loudness', models.DecimalField(decimal_places=2, max_digits=2)),
|
||||
('speechiness', models.DecimalField(decimal_places=2, max_digits=2)),
|
||||
('acousticness', models.DecimalField(decimal_places=2, max_digits=2)),
|
||||
('instrumentalness', models.DecimalField(decimal_places=2, max_digits=2)),
|
||||
('valence', models.DecimalField(decimal_places=2, max_digits=2)),
|
||||
('tempo', models.DecimalField(decimal_places=2, max_digits=2)),
|
||||
('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_plural': 'AudioFeatures',
|
||||
'verbose_name': 'AudioFeatures',
|
||||
'verbose_name_plural': 'AudioFeatures',
|
||||
},
|
||||
),
|
||||
migrations.AddField(
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
# Generated by Django 2.0.5 on 2018-06-05 23:47
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('spotifyvis', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name='track',
|
||||
old_name='artist',
|
||||
new_name='artists',
|
||||
),
|
||||
]
|
||||
@@ -1,53 +0,0 @@
|
||||
# Generated by Django 2.0.5 on 2018-06-06 09:23
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('spotifyvis', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='audiofeatures',
|
||||
name='acousticness',
|
||||
field=models.DecimalField(decimal_places=3, max_digits=3),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='audiofeatures',
|
||||
name='danceability',
|
||||
field=models.DecimalField(decimal_places=3, max_digits=3),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='audiofeatures',
|
||||
name='energy',
|
||||
field=models.DecimalField(decimal_places=3, max_digits=3),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='audiofeatures',
|
||||
name='instrumentalness',
|
||||
field=models.DecimalField(decimal_places=3, max_digits=3),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='audiofeatures',
|
||||
name='loudness',
|
||||
field=models.DecimalField(decimal_places=3, max_digits=3),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='audiofeatures',
|
||||
name='speechiness',
|
||||
field=models.DecimalField(decimal_places=3, max_digits=3),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='audiofeatures',
|
||||
name='tempo',
|
||||
field=models.DecimalField(decimal_places=3, max_digits=3),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='audiofeatures',
|
||||
name='valence',
|
||||
field=models.DecimalField(decimal_places=3, max_digits=3),
|
||||
),
|
||||
]
|
||||
@@ -1,23 +0,0 @@
|
||||
# Generated by Django 2.0.5 on 2018-06-06 09:25
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('spotifyvis', '0002_auto_20180606_0523'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='audiofeatures',
|
||||
name='loudness',
|
||||
field=models.DecimalField(decimal_places=3, max_digits=6),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='audiofeatures',
|
||||
name='tempo',
|
||||
field=models.DecimalField(decimal_places=3, max_digits=6),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user