IO-1419 Resolve hsaura migration issues with new field.

This commit is contained in:
Patrick Fic
2021-10-04 13:20:35 -07:00
parent 632549dd9d
commit ea2c583b26
18 changed files with 7540 additions and 7522 deletions

View File

@@ -22304,7 +22304,7 @@
</translations>
</concept_node>
<concept_node>
<name>referral_source_other</name>
<name>referral_source_extra</name>
<definition_loaded>false</definition_loaded>
<description></description>
<comment></comment>

View File

@@ -133,8 +133,8 @@ export function JobsConvertButton({
</Select>
</Form.Item>
<Form.Item
label={t("jobs.fields.referral_source_other")}
name="referral_source_other"
label={t("jobs.fields.referral_source_extra")}
name="referral_source_extra"
>
<Input />
</Form.Item>

View File

@@ -182,8 +182,8 @@ export function JobsCreateJobsInfo({ bodyshop, form, selected }) {
</Select>
</Form.Item>
<Form.Item
label={t("jobs.fields.referral_source_other")}
name="referral_source_other"
label={t("jobs.fields.referral_source_extra")}
name="referral_source_extra"
>
<Input />
</Form.Item>

View File

@@ -115,8 +115,8 @@ export function JobsDetailGeneral({ bodyshop, jobRO, job, form }) {
</Select>
</Form.Item>
<Form.Item
label={t("jobs.fields.referral_source_other")}
name="referral_source_other"
label={t("jobs.fields.referral_source_extra")}
name="referral_source_extra"
>
<Input />
</Form.Item>

View File

@@ -359,7 +359,7 @@ export const GET_JOB_BY_PK = gql`
kmin
kmout
referral_source
referral_source_other
referral_source_extra
unit_number
po_number
special_coverage_policy
@@ -966,7 +966,7 @@ export const CONVERT_JOB_TO_RO = gql`
$driveable: Boolean
$towin: Boolean
$referral_source: String
$referral_source_other: String
$referral_source_extra: String
) {
update_jobs(
where: { id: { _eq: $jobId } }
@@ -978,7 +978,7 @@ export const CONVERT_JOB_TO_RO = gql`
towin: $towin
driveable: $driveable
referral_source: $referral_source
referral_source_other: $referral_source_other
referral_source_extra: $referral_source_extra
}
) {
returning {
@@ -988,7 +988,7 @@ export const CONVERT_JOB_TO_RO = gql`
class
ins_co_nm
referral_source
referral_source_other
referral_source_extra
}
}
}
@@ -1502,7 +1502,7 @@ export const QUERY_ALL_JOB_FIELDS = gql`
rate_mash
rate_matd
referral_source
referral_source_other
referral_source_extra
regie_number
selling_dealer
selling_dealer_contact

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -2716,7 +2716,7 @@
- rate_mash
- rate_matd
- referral_source
- referral_source_other
- referral_source_extra
- regie_number
- ro_number
- scheduled_completion
@@ -2964,7 +2964,7 @@
- rate_mash
- rate_matd
- referral_source
- referral_source_other
- referral_source_extra
- regie_number
- ro_number
- scheduled_completion
@@ -3222,7 +3222,7 @@
- rate_mash
- rate_matd
- referral_source
- referral_source_other
- referral_source_extra
- regie_number
- ro_number
- scheduled_completion

View File

@@ -0,0 +1,2 @@
alter table "public"."jobs" alter column "referral_source_other" drop not null;
alter table "public"."jobs" add column "referral_source_other" text;

View File

@@ -0,0 +1 @@
alter table "public"."jobs" drop column "referral_source_other" cascade;

View File

@@ -0,0 +1,4 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."jobs" add column "referral_source_other" text
-- null;

View File

@@ -0,0 +1,2 @@
alter table "public"."jobs" add column "referral_source_other" text
null;

View File

@@ -0,0 +1,2 @@
alter table "public"."jobs" alter column "referral_source_other" drop not null;
alter table "public"."jobs" add column "referral_source_other" text;

View File

@@ -0,0 +1 @@
alter table "public"."jobs" drop column "referral_source_other" cascade;

View File

@@ -0,0 +1,4 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."jobs" add column "referral_source_extra" text
-- null;

View File

@@ -0,0 +1,2 @@
alter table "public"."jobs" add column "referral_source_extra" text
null;

View File

@@ -555,7 +555,7 @@ exports.GET_JOB_BY_PK = ` query GET_JOB_BY_PK($id: uuid!) {
kmin
kmout
referral_source
referral_source_other
referral_source_extra
unit_number
po_number
special_coverage_policy