Closed Bug 1211715 Opened 9 years ago Closed 9 years ago

Remove the device table

Categories

(Tree Management :: Treeherder, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: emorley)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

It's not being used for anything.
Attachment #8670013 - Flags: review?(cdawson)
Attachment #8670013 - Flags: review?(cdawson) → review+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Before this is deployed, reference_data_signatures.device_name needs to be given a default (job.device_id already defaults to NULL).

ALTER TABLE treeherder.reference_data_signatures CHANGE device_name device_name varchar(50) COLLATE utf8_bin DEFAULT NULL;

Run against Heroku:
16:28:35	ALTER TABLE treeherder.reference_data_signatures CHANGE device_name device_name varchar(50) COLLATE utf8_bin DEFAULT NULL	0 row(s) affected Records: 0  Duplicates: 0  Warnings: 0	2.610 sec

Stage:
16:48:02	ALTER TABLE treeherder_stage.reference_data_signatures CHANGE device_name device_name varchar(50) COLLATE utf8_bin DEFAULT NULL	0 row(s) affected Records: 0  Duplicates: 0  Warnings: 0	0.156 sec

Prod:
16:51:47	ALTER TABLE treeherder.reference_data_signatures CHANGE device_name device_name varchar(50) COLLATE utf8_bin DEFAULT NULL	0 row(s) affected Records: 0  Duplicates: 0  Warnings: 0	3.437 sec


I'll file a separate bug to drop device table, reference_data_signatures.device_name and job.device_id.
Blocks: 1213899
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: