You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
db_comment='Does this operation produce a regulated product listed in Table 2 of Schedule A.1 of the GGERR (Greenhouse Gas Emission Reporting Regulation)?',
1976
+
db_comment="Does this operation produce a regulated product listed in Table 2 of Schedule A.1 of the GGERR (Greenhouse Gas Emission Reporting Regulation https://www.bclaws.gov.bc.ca/civix/document/id/lc/statreg/249_2015)?",
1977
1977
null=True,
1978
1978
),
1979
1979
),
@@ -2229,7 +2229,7 @@ class Migration(migrations.Migration):
2229
2229
model_name='historicalregulatedproduct',
2230
2230
name='name',
2231
2231
field=models.CharField(
2232
-
db_comment="The name of the product as listed in Schedule A.1 of the GHGIRCA (Greenhouse Gas Industrial Reporting and Control Act) (e.g. 'Cement equivalent', 'Mining: coal', 'Sold electricity').",
2232
+
db_comment="The name of the product as listed in Schedule A.1 of the GGIRCA (Greenhouse Gas Industrial Reporting and Control Act https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/14029_01) (e.g. 'Cement equivalent', 'Mining: coal', 'Sold electricity').",
2233
2233
max_length=1000,
2234
2234
),
2235
2235
),
@@ -3009,15 +3009,25 @@ class Migration(migrations.Migration):
3009
3009
to='registration.naicscode',
3010
3010
),
3011
3011
),
3012
-
migrations.AlterField(
3013
-
model_name='operation',
3014
-
name='operator',
3015
-
field=models.ForeignKey(
3016
-
db_comment='The operator that owns this operation. Foreign key to erc.operator',
3017
-
on_delete=django.db.models.deletion.PROTECT,
3018
-
related_name='operations',
3019
-
to='registration.operator',
3020
-
),
3012
+
migrations.SeparateDatabaseAndState(
3013
+
database_operations=[
3014
+
migrations.RunSQL(
3015
+
sql="COMMENT ON COLUMN erc.operation.operator_id IS 'The operator that owns this operation. Foreign key to erc.operator'",
3016
+
reverse_sql="COMMENT ON COLUMN erc.operation.operator_id IS NULL",
3017
+
),
3018
+
],
3019
+
state_operations=[
3020
+
migrations.AlterField(
3021
+
model_name='operation',
3022
+
name='operator',
3023
+
field=models.ForeignKey(
3024
+
db_comment='The operator that owns this operation. Foreign key to erc.operator',
3025
+
on_delete=django.db.models.deletion.PROTECT,
3026
+
related_name='operations',
3027
+
to='registration.operator',
3028
+
),
3029
+
),
3030
+
],
3021
3031
),
3022
3032
migrations.AlterField(
3023
3033
model_name='operation',
@@ -3352,7 +3362,7 @@ class Migration(migrations.Migration):
db_comment='Does this operation produce a regulated product listed in Table 2 of Schedule A.1 of the GGERR (Greenhouse Gas Emission Reporting Regulation)?',
3365
+
db_comment="Does this operation produce a regulated product listed in Table 2 of Schedule A.1 of the GGERR (Greenhouse Gas Emission Reporting Regulation https://www.bclaws.gov.bc.ca/civix/document/id/lc/statreg/249_2015)?",
3356
3366
null=True,
3357
3367
),
3358
3368
),
@@ -3589,7 +3599,7 @@ class Migration(migrations.Migration):
3589
3599
model_name='regulatedproduct',
3590
3600
name='name',
3591
3601
field=models.CharField(
3592
-
db_comment="The name of the product as listed in Schedule A.1 of the GHGIRCA (Greenhouse Gas Industrial Reporting and Control Act) (e.g. 'Cement equivalent', 'Mining: coal', 'Sold electricity').",
3602
+
db_comment="The name of the product as listed in Schedule A.1 of the GGIRCA (Greenhouse Gas Industrial Reporting and Control Act https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/14029_01) (e.g. 'Cement equivalent', 'Mining: coal', 'Sold electricity').",
3593
3603
max_length=1000,
3594
3604
),
3595
3605
),
@@ -4015,15 +4025,25 @@ class Migration(migrations.Migration):
4015
4025
to='registration.user',
4016
4026
),
4017
4027
),
4018
-
migrations.AlterField(
4019
-
model_name='useroperator',
4020
-
name='operator',
4021
-
field=models.ForeignKey(
4022
-
db_comment='The operator this user is requesting or has access to. Foreign key to erc.operator',
4023
-
on_delete=django.db.models.deletion.DO_NOTHING,
4024
-
related_name='user_operators',
4025
-
to='registration.operator',
4026
-
),
4028
+
migrations.SeparateDatabaseAndState(
4029
+
database_operations=[
4030
+
migrations.RunSQL(
4031
+
sql="COMMENT ON COLUMN erc.user_operator.operator_id IS 'The operator this user is requesting or has access to. Foreign key to erc.operator'",
4032
+
reverse_sql="COMMENT ON COLUMN erc.user_operator.operator_id IS NULL",
4033
+
),
4034
+
],
4035
+
state_operations=[
4036
+
migrations.AlterField(
4037
+
model_name='useroperator',
4038
+
name='operator',
4039
+
field=models.ForeignKey(
4040
+
db_comment='The operator this user is requesting or has access to. Foreign key to erc.operator',
4041
+
on_delete=django.db.models.deletion.DO_NOTHING,
4042
+
related_name='user_operators',
4043
+
to='registration.operator',
4044
+
),
4045
+
),
4046
+
],
4027
4047
),
4028
4048
migrations.AlterField(
4029
4049
model_name='useroperator',
@@ -4044,15 +4064,25 @@ class Migration(migrations.Migration):
4044
4064
to='registration.user',
4045
4065
),
4046
4066
),
4047
-
migrations.AlterField(
4048
-
model_name='useroperator',
4049
-
name='user',
4050
-
field=models.ForeignKey(
4051
-
db_comment='The user requesting or having access to this operator. Foreign key to erc.user',
4052
-
on_delete=django.db.models.deletion.DO_NOTHING,
4053
-
related_name='user_operators',
4054
-
to='registration.user',
4055
-
),
4067
+
migrations.SeparateDatabaseAndState(
4068
+
database_operations=[
4069
+
migrations.RunSQL(
4070
+
sql="COMMENT ON COLUMN erc.user_operator.user_id IS 'The user requesting or having access to this operator. Foreign key to erc.user'",
4071
+
reverse_sql="COMMENT ON COLUMN erc.user_operator.user_id IS NULL",
4072
+
),
4073
+
],
4074
+
state_operations=[
4075
+
migrations.AlterField(
4076
+
model_name='useroperator',
4077
+
name='user',
4078
+
field=models.ForeignKey(
4079
+
db_comment='The user requesting or having access to this operator. Foreign key to erc.user',
db_comment="Does this operation produce a regulated product listed in Table 2 of Schedule A.1 of the GGERR (Greenhouse Gas Emission Reporting Regulation)?",
36
+
db_comment="Does this operation produce a regulated product listed in Table 2 of Schedule A.1 of the GGERR (Greenhouse Gas Emission Reporting Regulation https://www.bclaws.gov.bc.ca/civix/document/id/lc/statreg/249_2015)?",
Copy file name to clipboardExpand all lines: bc_obps/registration/models/regulated_product.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@
11
11
classRegulatedProduct(BaseModel):
12
12
name=models.CharField(
13
13
max_length=1000,
14
-
db_comment="The name of the product as listed in Schedule A.1 of the GHGIRCA (Greenhouse Gas Industrial Reporting and Control Act) (e.g. 'Cement equivalent', 'Mining: coal', 'Sold electricity').",
14
+
db_comment="The name of the product as listed in Schedule A.1 of the GGIRCA (Greenhouse Gas Industrial Reporting and Control Act https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/14029_01) (e.g. 'Cement equivalent', 'Mining: coal', 'Sold electricity').",
15
15
)
16
16
unit=models.CharField(max_length=1000, default="N/A", db_comment="The unit of measure for a regulated product")
17
17
is_regulated=models.BooleanField(db_comment="Indicates if a product is regulated")
0 commit comments