Coverage for django_napse/core/migrations/0003_wallethistory.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:16
3from django.db import migrations, models
4import django.db.models.deletion
7class Migration(migrations.Migration):
9 dependencies = [
10 ("django_napse_core", "0002_history_historydatapoint_historydatapointfield"),
11 ]
13 operations = [
14 migrations.CreateModel(
15 name="WalletHistory",
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.wallet",
34 ),
35 ),
36 ],
37 bases=("django_napse_core.history",),
38 ),
39 ]