diff options
author | luxagraf <sng@luxagraf.net> | 2016-12-31 14:20:08 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2016-12-31 14:20:08 -0500 |
commit | 2370d5eb25362b5f382b0ea07c433dc176bab74e (patch) | |
tree | 085fa81c5a94b385fd293e8f5b46a8586db7325f /app/ebay/migrations | |
parent | c8800af7f64fff44909cdf8f88fca91a080c2526 (diff) |
wrote my own ebay tracker
Diffstat (limited to 'app/ebay/migrations')
-rw-r--r-- | app/ebay/migrations/0001_initial.py | 50 | ||||
-rw-r--r-- | app/ebay/migrations/0002_auto_20161231_1401.py | 25 | ||||
-rw-r--r-- | app/ebay/migrations/0003_auto_20161231_1419.py | 24 | ||||
-rw-r--r-- | app/ebay/migrations/__init__.py | 0 |
4 files changed, 99 insertions, 0 deletions
diff --git a/app/ebay/migrations/0001_initial.py b/app/ebay/migrations/0001_initial.py new file mode 100644 index 0000000..3d2d34e --- /dev/null +++ b/app/ebay/migrations/0001_initial.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2016-12-31 11:43 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Item', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('url', models.CharField(max_length=200)), + ('title', models.CharField(max_length=200)), + ('purchase_price', models.IntegerField()), + ('currently_own', models.BooleanField(default=False)), + ('sold', models.BooleanField(default=False)), + ('sale_price', models.IntegerField()), + ], + ), + migrations.CreateModel( + name='Price', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('date', models.DateTimeField()), + ('price', models.IntegerField()), + ], + ), + migrations.CreateModel( + name='TrackedItem', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('url', models.CharField(max_length=200)), + ('title', models.CharField(max_length=200)), + ], + ), + migrations.AddField( + model_name='price', + name='item', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ebay.TrackedItem'), + ), + ] diff --git a/app/ebay/migrations/0002_auto_20161231_1401.py b/app/ebay/migrations/0002_auto_20161231_1401.py new file mode 100644 index 0000000..46f5a12 --- /dev/null +++ b/app/ebay/migrations/0002_auto_20161231_1401.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2016-12-31 14:01 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('ebay', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='price', + name='date', + field=models.DateTimeField(blank=True), + ), + migrations.AlterField( + model_name='price', + name='price', + field=models.DecimalField(decimal_places=2, max_digits=6), + ), + ] diff --git a/app/ebay/migrations/0003_auto_20161231_1419.py b/app/ebay/migrations/0003_auto_20161231_1419.py new file mode 100644 index 0000000..1f05859 --- /dev/null +++ b/app/ebay/migrations/0003_auto_20161231_1419.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2016-12-31 14:19 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('ebay', '0002_auto_20161231_1401'), + ] + + operations = [ + migrations.AlterModelOptions( + name='price', + options={'get_latest_by': 'date', 'ordering': ('-date',)}, + ), + migrations.RenameField( + model_name='item', + old_name='title', + new_name='name', + ), + ] diff --git a/app/ebay/migrations/__init__.py b/app/ebay/migrations/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/app/ebay/migrations/__init__.py |