mirror of
https://github.com/IS1DI/x0gp.git
synced 2026-07-16 20:47:55 +00:00
removed device_id from all entities except car. Replaced with car_id . Car -> device_id
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
-- 015_driver_car_id.sql — move device_id to cars table and use car_id in lobby_drivers
|
||||
--
|
||||
-- Represents the currently selected physical ESP32 DEVICE_ID (0..127) for a car.
|
||||
-- And represents the currently selected car ID for a driver in lobby_drivers.
|
||||
|
||||
ALTER TABLE cars ADD COLUMN IF NOT EXISTS device_id INT;
|
||||
ALTER TABLE lobby_drivers ADD COLUMN IF NOT EXISTS car_id TEXT;
|
||||
ALTER TABLE lobby_drivers DROP COLUMN IF EXISTS device_id;
|
||||
Reference in New Issue
Block a user