File: 14_dbmigrate.sql

package info (click to toggle)
kraft 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,112 kB
  • sloc: cpp: 28,535; sql: 1,248; perl: 396; xml: 330; python: 101; sh: 92; makefile: 10
file content (11 lines) | stat: -rw-r--r-- 363 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
-- message Add tax table

CREATE TABLE taxes (
    id          INTEGER PRIMARY KEY ASC autoincrement,
    fullTax     DECIMAL(5,1),
    reducedTax  DECIMAL(5,1),
    startDate   DATE
);

INSERT INTO taxes ( fullTax, reducedTax, startDate ) VALUES (16.0, 7.0, '1998-04-01' );
INSERT INTO taxes ( fullTax, reducedTax, startDate ) VALUES (19.0, 7.0, '2007-01-01' );