File: 14_dbmigrate.sql

package info (click to toggle)
kraft 0.45-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,732 kB
  • sloc: cpp: 23,458; sql: 1,171; python: 623; xml: 105; sh: 3; makefile: 2
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' );