Coverage for django_napse/core/migrations/0004_spacehistory_fleethistory_exchangeaccounthistory.py: 100%
5 statements
« prev ^ index » next coverage.py v7.4.3, created at 2024-03-12 13:49 +0000
« prev ^ index » next coverage.py v7.4.3, created at 2024-03-12 13:49 +0000
1# Generated by Django 4.2.5 on 2023-10-05 16:17
3from django.db import migrations, models
4import django.db.models.deletion
7class Migration(migrations.Migration):
9 dependencies = [
10 ("django_napse_core", "0003_wallethistory"),
11 ]
13 operations = [
14 migrations.CreateModel(
15 name="SpaceHistory",
16 fields=[
17 (
18 "history_ptr",
19 models.OneToOneField(
20 auto_created=True,
21 on_delete=django.db.models.deletion.CASCADE,
22 parent_link=True,
23 primary_key=True,
24 serialize=False,
25 to="django_napse_core.history",
26 ),
27 ),
28 (
29 "owner",
30 models.OneToOneField(
31 on_delete=django.db.models.deletion.CASCADE,
32 related_name="history",
33 to="django_napse_core.napsespace",
34 ),
35 ),
36 ],
37 bases=("django_napse_core.history",),
38 ),
39 migrations.CreateModel(
40 name="FleetHistory",
41 fields=[
42 (
43 "history_ptr",
44 models.OneToOneField(
45 auto_created=True,
46 on_delete=django.db.models.deletion.CASCADE,
47 parent_link=True,
48 primary_key=True,
49 serialize=False,
50 to="django_napse_core.history",
51 ),
52 ),
53 (
54 "owner",
55 models.OneToOneField(
56 on_delete=django.db.models.deletion.CASCADE,
57 related_name="history",
58 to="django_napse_core.fleet",
59 ),
60 ),
61 ],
62 bases=("django_napse_core.history",),
63 ),
64 migrations.CreateModel(
65 name="ExchangeAccountHistory",
66 fields=[
67 (
68 "history_ptr",
69 models.OneToOneField(
70 auto_created=True,
71 on_delete=django.db.models.deletion.CASCADE,
72 parent_link=True,
73 primary_key=True,
74 serialize=False,
75 to="django_napse_core.history",
76 ),
77 ),
78 (
79 "owner",
80 models.OneToOneField(
81 on_delete=django.db.models.deletion.CASCADE,
82 related_name="history",
83 to="django_napse_core.exchangeaccount",
84 ),
85 ),
86 ],
87 bases=("django_napse_core.history",),
88 ),
89 ]