gcivil-nyu-org / spring2020-cs-gy-9223-class

2 stars 14 forks source link

Use UUID and Serial Number in sensor & sensortype #590

Closed jackxujh closed 4 years ago

jackxujh commented 4 years ago

Title

Use UUID and Serial Number in sensor & sensortype

Description

This PR uses UUID as primary keys in the AGSensor and AGSensorType models, replacing the integer AutoField. It also adds an integer column called serial for interfacing the hardware, so the hardware does not need to change. The PR is to resolve #181 .

Breaking Change: The migration history for ag_data models are rebuilt. Please backup the data on your system before rebuilding the database.

About the coverage drop: it is unclear from Coveralls report. However, this PR does not remove tests, introduce large code bodies, nor making any existing lines not covered in tests.

Types of Changes

Put an x in the boxes that apply

Checklist