Clean up migrations, do not include database

This commit is contained in:
Lukáš Kucharczyk 2023-01-02 19:36:03 +01:00
parent 6def13d2b6
commit 3cdfb94fe2
8 changed files with 172 additions and 195 deletions

Binary file not shown.

View File

@ -0,0 +1,98 @@
- model: tracker.game
pk: 1
fields:
name: Nioh 2
wikidata: Q67482292
- model: tracker.game
pk: 2
fields:
name: Elden Ring
wikidata: Q64826862
- model: tracker.game
pk: 3
fields:
name: Cyberpunk 2077
wikidata: Q3182559
- model: tracker.purchase
pk: 1
fields:
game: 1
platform: 1
date_purchased: 2021-02-13
date_refunded: null
- model: tracker.purchase
pk: 2
fields:
game: 2
platform: 1
date_purchased: 2022-02-24
date_refunded: null
- model: tracker.purchase
pk: 3
fields:
game: 3
platform: 1
date_purchased: 2020-12-07
date_refunded: null
- model: tracker.platform
pk: 1
fields:
name: Steam
group: PC
- model: tracker.platform
pk: 3
fields:
name: Xbox Gamepass
group: PC
- model: tracker.platform
pk: 4
fields:
name: Epic Games Store
group: PC
- model: tracker.platform
pk: 5
fields:
name: Playstation 5
group: Playstation
- model: tracker.platform
pk: 6
fields:
name: Playstation 4
group: Playstation
- model: tracker.platform
pk: 7
fields:
name: Nintendo Switch
group: Nintendo
- model: tracker.platform
pk: 8
fields:
name: Nintendo 3DS
group: Nintendo
- model: tracker.session
pk: 1
fields:
purchase: 2
timestamp_start: 2022-12-31 14:25:58+00:00
timestamp_end: 2022-12-31 16:25:22+00:00
duration_manual: null
duration_calculated: null
note: ''
- model: tracker.session
pk: 3
fields:
purchase: 3
timestamp_start: 2023-01-01 22:00:23+00:00
timestamp_end: 2023-01-01 23:28:23+00:00
duration_manual: null
duration_calculated: null
note: ''
- model: tracker.session
pk: 4
fields:
purchase: 3
timestamp_start: 2020-01-01 23:29:17+00:00
timestamp_end: 2020-01-01 23:29:17+00:00
duration_manual: '12:00:00'
duration_calculated: null
note: ''

View File

@ -1,6 +1,7 @@
# Generated by Django 4.1.4 on 2022-12-30 22:02
# Generated by Django 4.1.4 on 2023-01-02 18:27
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
@ -11,7 +12,68 @@ class Migration(migrations.Migration):
operations = [
migrations.CreateModel(
name="TrackerModel",
name="Game",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("name", models.CharField(max_length=255)),
("wikidata", models.CharField(max_length=50)),
],
),
migrations.CreateModel(
name="Platform",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("name", models.CharField(max_length=255)),
("group", models.CharField(max_length=255)),
],
),
migrations.CreateModel(
name="Purchase",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("date_purchased", models.DateField()),
("date_refunded", models.DateField(blank=True, null=True)),
(
"game",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE, to="tracker.game"
),
),
(
"platform",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="tracker.platform",
),
),
],
),
migrations.CreateModel(
name="Session",
fields=[
(
"id",
@ -22,10 +84,18 @@ class Migration(migrations.Migration):
verbose_name="ID",
),
),
("name", models.CharField(max_length=200)),
("timestamp_start", models.DateTimeField()),
("timestamp_end", models.DateTimeField()),
("note", models.TextField()),
("duration_manual", models.DurationField(blank=True, null=True)),
("duration_calculated", models.DurationField(blank=True, null=True)),
("note", models.TextField(blank=True, null=True)),
(
"purchase",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="tracker.purchase",
),
),
],
),
]

View File

@ -1,104 +0,0 @@
# Generated by Django 4.1.4 on 2022-12-31 12:35
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("tracker", "0001_initial"),
]
operations = [
migrations.CreateModel(
name="Game",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("name", models.CharField(max_length=255)),
("wikidata", models.CharField(max_length=50)),
],
),
migrations.CreateModel(
name="Platform",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("name", models.CharField(max_length=255)),
("group", models.CharField(max_length=255)),
],
),
migrations.CreateModel(
name="Purchase",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("date_purchased", models.DateTimeField()),
("date_refunded", models.DateTimeField()),
(
"game",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE, to="tracker.game"
),
),
(
"platform",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="tracker.platform",
),
),
],
),
migrations.CreateModel(
name="Session",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("timestamp_start", models.DateTimeField()),
("timestamp_end", models.DateTimeField()),
("duration_manual", models.DurationField()),
("duration_calculated", models.DurationField()),
("note", models.TextField()),
(
"purchase",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="tracker.purchase",
),
),
],
),
migrations.DeleteModel(
name="TrackerModel",
),
]

View File

@ -1,23 +0,0 @@
# Generated by Django 4.1.4 on 2022-12-31 13:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("tracker", "0002_game_platform_purchase_session_delete_trackermodel"),
]
operations = [
migrations.AlterField(
model_name="purchase",
name="date_purchased",
field=models.DateField(),
),
migrations.AlterField(
model_name="purchase",
name="date_refunded",
field=models.DateField(),
),
]

View File

@ -1,18 +0,0 @@
# Generated by Django 4.1.4 on 2022-12-31 13:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("tracker", "0003_alter_purchase_date_purchased_and_more"),
]
operations = [
migrations.AlterField(
model_name="purchase",
name="date_refunded",
field=models.DateField(blank=True),
),
]

View File

@ -1,18 +0,0 @@
# Generated by Django 4.1.4 on 2022-12-31 13:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("tracker", "0004_alter_purchase_date_refunded"),
]
operations = [
migrations.AlterField(
model_name="purchase",
name="date_refunded",
field=models.DateField(blank=True, null=True),
),
]

View File

@ -1,28 +0,0 @@
# Generated by Django 4.1.4 on 2022-12-31 13:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("tracker", "0005_alter_purchase_date_refunded"),
]
operations = [
migrations.AlterField(
model_name="session",
name="duration_calculated",
field=models.DurationField(blank=True, null=True),
),
migrations.AlterField(
model_name="session",
name="duration_manual",
field=models.DurationField(blank=True, null=True),
),
migrations.AlterField(
model_name="session",
name="note",
field=models.TextField(blank=True, null=True),
),
]