Changeset 41 for trunk/SQL


Ignore:
Timestamp:
Sep 14, 2020, 12:22:36 PM (4 years ago)
Author:
chronos
Message:
  • Modified: Translate prefix multipliers.
  • Modified: Improve length, duration and speed calculation in detailed and daily tables.
  • Added: Allow to define lap length na money per Km for each year.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SQL/Upgrade.txt

    r21 r41  
    1515  MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
    1616
     17-- 41
     18
     19CREATE TABLE `Year` (
     20  `Id` int(11) NOT NULL,
     21  `Year` int(11) NOT NULL,
     22  `MoneyKm` int(11) NOT NULL,
     23  `LapLength` DECIMAL(10,1) NOT NULL
     24) ENGINE=InnoDB DEFAULT CHARSET=utf8;
     25
     26ALTER TABLE `Year` ADD PRIMARY KEY (`Id`);
     27
     28ALTER TABLE `Year`
     29  MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT;
     30COMMIT;
     31
     32INSERT INTO `Year` (`Id`, `Year`, `MoneyKm`, `LapLength`) VALUES
     33(1, 2018, 30, '1.5'),
     34(2, 2019, 30, '1.5'),
     35(3, 2020, 10, '0.0');
Note: See TracChangeset for help on using the changeset viewer.