Coverage for migrations / 0033_remove_formkitschemanode_insert_insert_and_more.py: 0%
6 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-22 07:15 +0000
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-22 07:15 +0000
1# Generated by Django 4.2.27 on 2026-01-21 08:28
3import pgtrigger.compiler
4import pgtrigger.migrations
5from django.db import migrations, models
8class Migration(migrations.Migration):
9 dependencies = [
10 ("formkit_ninja", "0032_migrate_repeater_props"),
11 ]
13 operations = [
14 pgtrigger.migrations.RemoveTrigger(
15 model_name="formkitschemanode",
16 name="insert_insert",
17 ),
18 pgtrigger.migrations.RemoveTrigger(
19 model_name="formkitschemanode",
20 name="update_update",
21 ),
22 migrations.AddField(
23 model_name="formkitschemanode",
24 name="max",
25 field=models.CharField(blank=True, max_length=256, null=True),
26 ),
27 migrations.AddField(
28 model_name="formkitschemanodeevent",
29 name="max",
30 field=models.CharField(blank=True, max_length=256, null=True),
31 ),
32 pgtrigger.migrations.AddTrigger(
33 model_name="formkitschemanode",
34 trigger=pgtrigger.compiler.Trigger(
35 name="insert_insert",
36 sql=pgtrigger.compiler.UpsertTriggerSql(
37 func='INSERT INTO "formkit_ninja_formkitschemanodeevent" ("add_label", "additional_props", "created", "created_by_id", "description", "down_control", "icon", "id", "is_active", "label", "max", "min", "node", "node_type", "option_group_id", "pgh_context_id", "pgh_created_at", "pgh_label", "pgh_obj_id", "protected", "readonly", "sections_schema", "step", "text_content", "title", "track_change", "up_control", "updated", "updated_by_id") VALUES (NEW."add_label", NEW."additional_props", NEW."created", NEW."created_by_id", NEW."description", NEW."down_control", NEW."icon", NEW."id", NEW."is_active", NEW."label", NEW."max", NEW."min", NEW."node", NEW."node_type", NEW."option_group_id", _pgh_attach_context(), NOW(), \'insert\', NEW."id", NEW."protected", NEW."readonly", NEW."sections_schema", NEW."step", NEW."text_content", NEW."title", NEW."track_change", NEW."up_control", NEW."updated", NEW."updated_by_id"); RETURN NULL;',
38 hash="0928e1a83642abee35eeae90aef3195139a24cde",
39 operation="INSERT",
40 pgid="pgtrigger_insert_insert_72c4c",
41 table="formkit_ninja_formkitschemanode",
42 when="AFTER",
43 ),
44 ),
45 ),
46 pgtrigger.migrations.AddTrigger(
47 model_name="formkitschemanode",
48 trigger=pgtrigger.compiler.Trigger(
49 name="update_update",
50 sql=pgtrigger.compiler.UpsertTriggerSql(
51 condition="WHEN (OLD.* IS DISTINCT FROM NEW.*)",
52 func='INSERT INTO "formkit_ninja_formkitschemanodeevent" ("add_label", "additional_props", "created", "created_by_id", "description", "down_control", "icon", "id", "is_active", "label", "max", "min", "node", "node_type", "option_group_id", "pgh_context_id", "pgh_created_at", "pgh_label", "pgh_obj_id", "protected", "readonly", "sections_schema", "step", "text_content", "title", "track_change", "up_control", "updated", "updated_by_id") VALUES (NEW."add_label", NEW."additional_props", NEW."created", NEW."created_by_id", NEW."description", NEW."down_control", NEW."icon", NEW."id", NEW."is_active", NEW."label", NEW."max", NEW."min", NEW."node", NEW."node_type", NEW."option_group_id", _pgh_attach_context(), NOW(), \'update\', NEW."id", NEW."protected", NEW."readonly", NEW."sections_schema", NEW."step", NEW."text_content", NEW."title", NEW."track_change", NEW."up_control", NEW."updated", NEW."updated_by_id"); RETURN NULL;',
53 hash="46f8d69f496382a09d9fe24bef762b715e82a17f",
54 operation="UPDATE",
55 pgid="pgtrigger_update_update_d7c99",
56 table="formkit_ninja_formkitschemanode",
57 when="AFTER",
58 ),
59 ),
60 ),
61 ]