Update db schema, Weinbaugemeinden

This commit is contained in:
2023-02-04 17:07:37 +01:00
parent 6762200c25
commit e73ac85682
6 changed files with 180 additions and 47 deletions

110
sql/v01/03.base.sql Normal file
View File

@ -0,0 +1,110 @@
INSERT INTO country VALUES
('AT', 'AUT', 40, 'Österreich', TRUE),
('DE', 'DEU', 276, 'Deutschland', FALSE),
('CZ', 'CZE', 203, 'Tschechien', FALSE),
('HU', 'HUN', 348, 'Ungarn', FALSE),
('SK', 'SVK', 703, 'Slowakei', FALSE),
('IT', 'ITA', 380, 'Italien', FALSE),
('NL', 'NLD', 528, 'Niederlande', FALSE),
('LU', 'LUX', 442, 'Luxemburg', FALSE),
('BE', 'BEL', 56, 'Belgien', FALSE),
('FR', 'FRA', 250, 'France', FALSE),
('ES', 'ESP', 724, 'Spanien', FALSE),
('PT', 'PRT', 620, 'Portugal', FALSE);
INSERT INTO currency VALUES
('EUR', 'Euro', '', 10000),
('ATS', 'Schilling', 'S', 137603),
('XXP', 'Punkte', 'Pkt.', NULL);
INSERT INTO AT_bundesland VALUES
(1, 'B', 'Bgld.', 'Burgenland'),
(2, 'K', 'Ktn.', 'Kärnten'),
(3, 'N', '', 'Niederösterreich'),
(4, 'O', '', 'Oberösterreich'),
(5, 'S', 'Sbg.', 'Salzburg'),
(6, 'St', 'Stmk.', 'Steiermark'),
(7, 'T', NULL, 'Tirol'),
(8, 'V', 'Vbg.', 'Vorarlberg'),
(9, 'W', NULL, 'Wien');
INSERT INTO wine_origin VALUES
('AUSL', NULL , 'Ausland', NULL),
('EUXX', NULL , 'Verschnitt von mehreren Weinen der EU', NULL),
('OEST', NULL , 'Österreich', NULL),
('BLXX', 'OEST', 'Bergland', NULL),
('SLXX', 'OEST', 'Steirerland', NULL),
('WLXX', 'OEST', 'Weinland', NULL),
('BLKA', 'BLXX', 'Kärnten', 2),
('BLOO', 'BLXX', 'Oberösterreich', 4),
('BLSB', 'BLXX', 'Salzburg', 5),
('BLTI', 'BLXX', 'Tirol', 7),
('BLVO', 'BLXX', 'Vorarlberg', 8),
('SLST', 'SLXX', 'Steiermark', 6),
('SLSS', 'SLST', 'Südsteiermark', NULL),
('SLVL', 'SLST', 'Vulkanland Steiermark', NULL),
('SLWS', 'SLST', 'Weststeiermark', NULL),
('WIEN', 'WLXX', 'Wien', 9),
('WLNO', 'WLXX', 'Niederösterreich', 3),
('WLBL', 'WLXX', 'Burgenland', 1),
('WLCA', 'WLNO', 'Carnuntum', NULL),
('WLKA', 'WLNO', 'Kamptal', NULL),
('WLKT', 'WLNO', 'Kremstal', NULL),
('WLTH', 'WLNO', 'Thermenregion', NULL),
('WLTT', 'WLNO', 'Traisental', NULL),
('WLWA', 'WLNO', 'Wachau', NULL),
('WLWG', 'WLNO', 'Wagram', NULL),
('WLWV', 'WLNO', 'Weinviertel', NULL),
('WLNS', 'WLBL', 'Neusiedlersee', NULL),
('WLLB', 'WLBL', 'Leithaberg', NULL),
('WLRO', 'WLBL', 'Rosalia', NULL),
('WLMB', 'WLBL', 'Mittelburgenland', NULL),
('WLEB', 'WLBL', 'Eisenberg', NULL);
INSERT INTO wine_variety VALUES
('BL', 'R', 'Blauburger', NULL),
('BB', 'R', 'Blauer Burgunder', 'Blauer Spätburgunder, Blauburgunder, Pinot Noir'),
('BP', 'R', 'Blauer Portugieser', NULL),
('BW', 'R', 'Blauer Wildbacher', NULL),
('BF', 'R', 'Blaufränkisch', 'Frankovka'),
('BM', 'W', 'Blütenmuskateller', NULL),
('BO', 'W', 'Bouvier', NULL),
('CF', 'R', 'Cabernet Franc', NULL),
('CS', 'R', 'Cabernet Sauvignon', NULL),
('CH', 'W', 'Chardonnay', 'Morillon'),
('FV', 'W', 'Frühroter Veltliner', 'Malvasier'),
('FU', 'W', 'Furmint', NULL),
('GW', 'W', 'Gemischter Satz weiß', NULL),
('GB', 'W', 'Goldburger', NULL),
('GL', 'W', 'Goldmuskateller', NULL),
('GR', 'W', 'Grauer Burgunder', 'Grauburgunder, Pinot Gris, Ruländer'),
('GV', 'W', 'Grüner Veltliner', 'Weißgipfler'),
('JU', 'W', 'Jubiläumsrebe', NULL),
('ME', 'R', 'Merlot', NULL),
('MT', 'W', 'Müller Thurgau', 'Rivaner'),
('MC', 'W', 'Muscaris', NULL),
('MO', 'W', 'Muskat Ottonel', NULL),
('MU', 'W', 'Muskateller', 'Gelber Muskateller, Roter Muskateller'),
('NB', 'W', 'Neuburger', NULL),
('RH', 'R', 'Rathay', NULL),
('RR', 'W', 'Riesling', 'Weißer Riesling, Rheinriesling, Roter Riesling'),
('RL', 'R', 'Roesler', NULL),
('RM', 'R', 'Rosenmuskateller', NULL),
('RV', 'W', 'Roter Veltliner', NULL),
('RG', 'W', 'Rotgipfler', NULL),
('SB', 'W', 'Sauvignon Blanc', NULL),
('SA', 'W', 'Scheurebe', 'Sämling 88'),
-- ('SP', '', 'Sortenverschnitt gleichgepresst', NULL),
('SR', 'R', 'Sortenverschnitt Rosé', NULL),
('SO', 'R', 'Sortenverschnitt rot', NULL),
('SW', 'W', 'Sortenverschnitt weiß', NULL),
('SG', 'W', 'Souvignier Gris', NULL),
('SL', 'R', 'St. Laurent', NULL),
('SY', 'W', 'Sylvaner', 'Grüner Sylvaner'),
('SH', 'R', 'Syrah', 'Shiraz'),
('TR', 'W', 'Traminer', 'Gewürztraminer, Roter Traminer, Gelber Traminer'),
('WB', 'W', 'Weißer Burgunder', 'Weißburgunder, Pinot Blanc, Klevner'),
('WR', 'W', 'Welschriesling', NULL),
('ZF', 'W', 'Zierfandler', 'Spätrot'),
('ZW', 'R', 'Zweigelt', 'Blauer Zweigelt, Rotburger');