From ac9aeb909a124265b57565153a574a0750308323 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Thu, 13 Sep 2018 18:04:02 -0600 Subject: [PATCH] Ignore and delete migrations --- authserver/.gitignore | 1 + authserver/README.md | 2 +- .../authserver/api/migrations/0001_initial.py | 55 ------------------- .../api/migrations/0002_auto_20180912_2156.py | 18 ------ .../api/migrations/0003_auto_20180912_2302.py | 23 -------- .../authserver/api/migrations/__init__.py | 0 6 files changed, 2 insertions(+), 97 deletions(-) delete mode 100644 authserver/authserver/api/migrations/0001_initial.py delete mode 100644 authserver/authserver/api/migrations/0002_auto_20180912_2156.py delete mode 100644 authserver/authserver/api/migrations/0003_auto_20180912_2302.py delete mode 100644 authserver/authserver/api/migrations/__init__.py diff --git a/authserver/.gitignore b/authserver/.gitignore index 8fddfd2..b6fbbc6 100644 --- a/authserver/.gitignore +++ b/authserver/.gitignore @@ -104,6 +104,7 @@ ENV/ # DB db.sqlite3 +migrations/ # media media/* diff --git a/authserver/README.md b/authserver/README.md index f96316d..86853e9 100644 --- a/authserver/README.md +++ b/authserver/README.md @@ -4,7 +4,7 @@ Setup: $ virtualenv -p python3 env $ . env/bin/activate (env) $ pip install -r requirements.txt -(env) $ python manage.py migrate +(env) $ python manage.py migrate --run-syncdb (env) $ python manage.py createsuperuser --email admin@example.com --username admin (env) $ python manage.py runserver ``` diff --git a/authserver/authserver/api/migrations/0001_initial.py b/authserver/authserver/api/migrations/0001_initial.py deleted file mode 100644 index 54f8228..0000000 --- a/authserver/authserver/api/migrations/0001_initial.py +++ /dev/null @@ -1,55 +0,0 @@ -# Generated by Django 2.1.1 on 2018-09-12 21:41 - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ] - - operations = [ - migrations.CreateModel( - name='Category', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(max_length=32)), - ('slug', models.CharField(max_length=32)), - ('info', models.TextField(blank=True, max_length=1024)), - ('photo', models.FileField(upload_to='media/')), - ], - ), - migrations.CreateModel( - name='Profile', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('lockout_admin', models.BooleanField(default=False)), - ], - ), - migrations.CreateModel( - name='Tool', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(max_length=32)), - ('info', models.TextField(blank=True, max_length=1024)), - ('wiki_id', models.IntegerField()), - ('photo', models.FileField(upload_to='media/')), - ('category', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='tools', to='api.Category')), - ], - ), - migrations.AddField( - model_name='profile', - name='authorized_tools', - field=models.ManyToManyField(to='api.Tool'), - ), - migrations.AddField( - model_name='profile', - name='user', - field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), - ), - ] diff --git a/authserver/authserver/api/migrations/0002_auto_20180912_2156.py b/authserver/authserver/api/migrations/0002_auto_20180912_2156.py deleted file mode 100644 index 44f2695..0000000 --- a/authserver/authserver/api/migrations/0002_auto_20180912_2156.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 2.1.1 on 2018-09-12 21:56 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('api', '0001_initial'), - ] - - operations = [ - migrations.AlterField( - model_name='category', - name='photo', - field=models.FileField(upload_to='static/media/'), - ), - ] diff --git a/authserver/authserver/api/migrations/0003_auto_20180912_2302.py b/authserver/authserver/api/migrations/0003_auto_20180912_2302.py deleted file mode 100644 index 5addb98..0000000 --- a/authserver/authserver/api/migrations/0003_auto_20180912_2302.py +++ /dev/null @@ -1,23 +0,0 @@ -# Generated by Django 2.1.1 on 2018-09-12 23:02 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('api', '0002_auto_20180912_2156'), - ] - - operations = [ - migrations.AlterField( - model_name='category', - name='photo', - field=models.ImageField(upload_to=''), - ), - migrations.AlterField( - model_name='tool', - name='photo', - field=models.ImageField(upload_to=''), - ), - ] diff --git a/authserver/authserver/api/migrations/__init__.py b/authserver/authserver/api/migrations/__init__.py deleted file mode 100644 index e69de29..0000000