Browse Source

clean migrations

pull/1/head
Francesco Esposito 2 years ago
parent
commit
dc78ecc543
  1. 19
      segnalibre_app/migrations/0001_initial.py
  2. 17
      segnalibre_app/migrations/0002_remove_book_create_by.py
  3. 26
      segnalibre_app/migrations/0003_auto_20191122_2202.py
  4. 25
      segnalibre_app/migrations/0004_auto_20191122_2226.py
  5. 25
      segnalibre_app/migrations/0005_auto_20191122_2228.py
  6. 25
      segnalibre_app/migrations/0006_auto_20191122_2231.py
  7. 18
      segnalibre_app/migrations/0007_book_position.py
  8. 16
      segnalibre_app/migrations/0008_delete_bookmark.py
  9. 18
      segnalibre_app/migrations/0009_book_cover.py
  10. 18
      segnalibre_app/migrations/0010_auto_20191123_1356.py
  11. 19
      segnalibre_app/migrations/0011_book_status.py
  12. 19
      segnalibre_app/migrations/0012_auto_20191128_2322.py
  13. 18
      segnalibre_app/migrations/0013_auto_20191128_2344.py
  14. 18
      segnalibre_app/migrations/0014_auto_20191128_2347.py

19
segnalibre_app/migrations/0001_initial.py

@ -1,4 +1,4 @@
# Generated by Django 2.2.7 on 2019-11-22 20:55
# Generated by Django 2.2.7 on 2019-11-28 23:30
from django.conf import settings
from django.db import migrations, models
@ -20,21 +20,18 @@ class Migration(migrations.Migration):
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=100)),
('author', models.CharField(max_length=100)),
('cover_url', models.URLField(null=True)),
('publisher', models.CharField(max_length=100)),
('pub_date', models.DateField()),
('pages', models.IntegerField()),
('position', models.IntegerField(default=0)),
('created', models.DateTimeField(auto_now_add=True)),
('updated', models.DateTimeField(auto_now=True)),
('create_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.CreateModel(
name='Bookmark',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('position', models.IntegerField()),
('created', models.DateTimeField(auto_now_add=True)),
('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='segnalibre_app.Book')),
('status', models.CharField(default='uncompleted', editable=False, max_length=32)),
('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='books', to=settings.AUTH_USER_MODEL)),
],
options={
'abstract': False,
},
),
]

17
segnalibre_app/migrations/0002_remove_book_create_by.py

@ -1,17 +0,0 @@
# Generated by Django 2.2.7 on 2019-11-22 21:01
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('segnalibre_app', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='book',
name='create_by',
),
]

26
segnalibre_app/migrations/0003_auto_20191122_2202.py

@ -1,26 +0,0 @@
# Generated by Django 2.2.7 on 2019-11-22 21:02
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('segnalibre_app', '0002_remove_book_create_by'),
]
operations = [
migrations.AddField(
model_name='book',
name='owner',
field=models.ForeignKey(default=-1, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
),
migrations.AddField(
model_name='bookmark',
name='owner',
field=models.ForeignKey(default=-1, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
),
]

25
segnalibre_app/migrations/0004_auto_20191122_2226.py

@ -1,25 +0,0 @@
# Generated by Django 2.2.7 on 2019-11-22 21:26
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('segnalibre_app', '0003_auto_20191122_2202'),
]
operations = [
migrations.AlterField(
model_name='book',
name='owner',
field=models.ForeignKey(default=0, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
),
migrations.AlterField(
model_name='bookmark',
name='owner',
field=models.ForeignKey(default=0, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
),
]

25
segnalibre_app/migrations/0005_auto_20191122_2228.py

@ -1,25 +0,0 @@
# Generated by Django 2.2.7 on 2019-11-22 21:28
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('segnalibre_app', '0004_auto_20191122_2226'),
]
operations = [
migrations.AlterField(
model_name='book',
name='owner',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
),
migrations.AlterField(
model_name='bookmark',
name='owner',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
),
]

25
segnalibre_app/migrations/0006_auto_20191122_2231.py

@ -1,25 +0,0 @@
# Generated by Django 2.2.7 on 2019-11-22 21:31
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('segnalibre_app', '0005_auto_20191122_2228'),
]
operations = [
migrations.AlterField(
model_name='book',
name='owner',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='books', to=settings.AUTH_USER_MODEL),
),
migrations.AlterField(
model_name='bookmark',
name='owner',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='bookmarks', to=settings.AUTH_USER_MODEL),
),
]

18
segnalibre_app/migrations/0007_book_position.py

@ -1,18 +0,0 @@
# Generated by Django 2.2.7 on 2019-11-22 22:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('segnalibre_app', '0006_auto_20191122_2231'),
]
operations = [
migrations.AddField(
model_name='book',
name='position',
field=models.IntegerField(default=0),
),
]

16
segnalibre_app/migrations/0008_delete_bookmark.py

@ -1,16 +0,0 @@
# Generated by Django 2.2.7 on 2019-11-23 11:23
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('segnalibre_app', '0007_book_position'),
]
operations = [
migrations.DeleteModel(
name='Bookmark',
),
]

18
segnalibre_app/migrations/0009_book_cover.py

@ -1,18 +0,0 @@
# Generated by Django 2.2.7 on 2019-11-23 12:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('segnalibre_app', '0008_delete_bookmark'),
]
operations = [
migrations.AddField(
model_name='book',
name='cover',
field=models.URLField(null=True),
),
]

18
segnalibre_app/migrations/0010_auto_20191123_1356.py

@ -1,18 +0,0 @@
# Generated by Django 2.2.7 on 2019-11-23 12:56
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('segnalibre_app', '0009_book_cover'),
]
operations = [
migrations.RenameField(
model_name='book',
old_name='cover',
new_name='cover_url',
),
]

19
segnalibre_app/migrations/0011_book_status.py

@ -1,19 +0,0 @@
# Generated by Django 2.2.7 on 2019-11-28 22:15
import computed_property.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('segnalibre_app', '0010_auto_20191123_1356'),
]
operations = [
migrations.AddField(
model_name='book',
name='status',
field=computed_property.fields.ComputedCharField(compute_from='calculate_status', default='uncompleted', editable=False, max_length=30),
),
]

19
segnalibre_app/migrations/0012_auto_20191128_2322.py

@ -1,19 +0,0 @@
# Generated by Django 2.2.7 on 2019-11-28 22:22
import computed_property.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('segnalibre_app', '0011_book_status'),
]
operations = [
migrations.AlterField(
model_name='book',
name='status',
field=computed_property.fields.ComputedCharField(compute_from='calculate_status', editable=False, max_length=30, null=True),
),
]

18
segnalibre_app/migrations/0013_auto_20191128_2344.py

@ -1,18 +0,0 @@
# Generated by Django 2.2.7 on 2019-11-28 22:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('segnalibre_app', '0012_auto_20191128_2322'),
]
operations = [
migrations.AlterField(
model_name='book',
name='status',
field=models.CharField(max_length=32, null=True),
),
]

18
segnalibre_app/migrations/0014_auto_20191128_2347.py

@ -1,18 +0,0 @@
# Generated by Django 2.2.7 on 2019-11-28 22:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('segnalibre_app', '0013_auto_20191128_2344'),
]
operations = [
migrations.AlterField(
model_name='book',
name='status',
field=models.CharField(default='uncompleted', max_length=32),
),
]
Loading…
Cancel
Save