Skip to content

Commit

Permalink
Had a bug from a bad find/replace in a DB create script, and a straig…
Browse files Browse the repository at this point in the history
…ht up typo in another. Fixed now.
  • Loading branch information
surfrock66 committed Feb 3, 2019
1 parent 2683973 commit 67b30d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/create_torque_keys_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ CREATE TABLE `torque_keys` (
`description` varchar(255) COMMENT 'Description',
`type` varchar(255) NOT NULL DEFAULT 'varchar(255)' COMMENT 'Variable Type',
`units` varchar(255) COMMENT 'Units',
`populated, favorite` boolean NOT NULL DEFAULT '0' COMMENT 'Is This Variable Populated?',
`populated` boolean NOT NULL DEFAULT '0' COMMENT 'Is This Variable Populated?',
`favorite` boolean NOT NULL DEFAULT '0' COMMENT 'Pre-select this variable for plotting?',
`min` float COMMENT 'Minimum Value',
`max` float COMMENT 'Maximum Value',
Expand Down Expand Up @@ -104,7 +104,7 @@ INSERT INTO torque_keys (id, description, type, units, populated, favorite, min,
INSERT INTO torque_keys (id, description, type, units, populated, favorite, min, max) VALUES ('k19','Fuel Trim Bank 2 Sensor 2','float','%',1,0,-100,100);
INSERT INTO torque_keys (id, description, type, units, populated, favorite, min, max) VALUES ('k1a','Fuel Trim Bank 2 Sensor 3','float','%',1,0,-100,100);
INSERT INTO torque_keys (id, description, type, units, populated, favorite, min, max) VALUES ('k1b','Fuel Trim Bank 2 Sensor 4','float','%',1,0,-100,100);
INSERT INTO torque_keys (id, description, type, units, populated, favorite, min, max) VALUES ('k8','Fuel Trim Bank 2 Short Term','float','%',1,0.-25,25);
INSERT INTO torque_keys (id, description, type, units, populated, favorite, min, max) VALUES ('k8','Fuel Trim Bank 2 Short Term','float','%',1,0,-25,25);
INSERT INTO torque_keys (id, description, type, units, populated, favorite, min, max) VALUES ('kff1271','Fuel Used (Trip)','float','l',1,0,0,100);
INSERT INTO torque_keys (id, description, type, units, populated, favorite, min, max) VALUES ('kff1239','GPS Accuracy','float','m',1,0,0,100);
INSERT INTO torque_keys (id, description, type, units, populated, favorite, min, max) VALUES ('kff1010','GPS Altitude','float','m',1,0,0,100);
Expand Down
3 changes: 1 addition & 2 deletions scripts/create_torque_log_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,5 @@ CREATE TABLE `raw_logs` (
`kff5201` float NOT NULL DEFAULT '0',
`kff5202` float NOT NULL DEFAULT '0',
`kff5203` float NOT NULL DEFAULT '0',
KEY `session` (`session`,`id`),
KEY `id` (`id`)
KEY `session` (`session`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

0 comments on commit 67b30d9

Please sign in to comment.