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
// Manually have to reset these as insert has a issue with `type` columns
90
92
awaitcon.query(`update post set type = 'article' where type = 'Post'`);
91
93
awaitcon.query(`update source set type = 'machine' where type = 'Source'`);
92
94
awaitcon.query(`update source set type = 'squad' where id = 'publicsquad'`);
95
+
// Fix UserExperience type column (TypeORM table inheritance issue)
96
+
awaitcon.query(
97
+
`update user_experience set type = 'work' where type = 'UserExperience' and "employmentType" is not null`,
98
+
);
99
+
awaitcon.query(
100
+
`update user_experience set type = 'education' where type = 'UserExperience' and grade is not null`,
101
+
);
102
+
awaitcon.query(
103
+
`update user_experience set type = 'project' where type = 'UserExperience' and url is not null and "externalReferenceId" is null`,
104
+
);
105
+
awaitcon.query(
106
+
`update user_experience set type = 'certification' where type = 'UserExperience' and "externalReferenceId" is not null`,
107
+
);
108
+
awaitcon.query(
109
+
`update user_experience set type = 'opensource' where type = 'UserExperience' and url is not null and "externalReferenceId" is null and "customCompanyName" is null`,
110
+
);
111
+
awaitcon.query(
112
+
`update user_experience set type = 'volunteering' where type = 'UserExperience' and "employmentType" is null and grade is null and url is null and "externalReferenceId" is null`,
0 commit comments