From bcd5c24f677daf23a1c9f2a890402e924c077c2d Mon Sep 17 00:00:00 2001 From: fdenzer Date: Fri, 23 Jun 2023 11:14:00 +0200 Subject: [PATCH] fix two kinds of typos bezeichung was written without n before ung insert or ignore into consistently, but was `insert`, or `insert or into` in previous drafts --- db_scripts/create.sql | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/db_scripts/create.sql b/db_scripts/create.sql index 23daa87..58401b6 100644 --- a/db_scripts/create.sql +++ b/db_scripts/create.sql @@ -13,9 +13,9 @@ CREATE TABLE IF NOT EXISTS transaktion_art ( art VARCHAR(50) NOT NULL ); -INSERT INTO transaktion_art(art_id, art) VALUES (1, 'monatlicher_beitrag'); -INSERT INTO transaktion_art(art_id, art) VALUES (2, 'aufladung'); -INSERT INTO transaktion_art(art_id, art) VALUES (3, 'einkauf'); +INSERT OR IGNORE INTO transaktion_art(art_id, art) VALUES (1, 'monatlicher_beitrag'); +INSERT OR IGNORE INTO transaktion_art(art_id, art) VALUES (2, 'aufladung'); +INSERT OR IGNORE INTO transaktion_art(art_id, art) VALUES (3, 'einkauf'); CREATE TABLE IF NOT EXISTS transaktion ( transaktion_id INT NOT NULL PRIMARY KEY, @@ -41,16 +41,16 @@ CREATE TABLE IF NOT EXISTS mwst ( prozent INT NOT NULL ); -INSERT INTO mwst(mwst_id, prozent) VALUES (1, 7); -INSERT INTO mwst(mwst_id, prozent) VALUES (2, 19); +INSERT OR IGNORE INTO mwst(mwst_id, prozent) VALUES (1, 7); +INSERT OR IGNORE INTO mwst(mwst_id, prozent) VALUES (2, 19); CREATE TABLE IF NOT EXISTS einheit( einheit_id INT NOT NULL PRIMARY KEY, - bezeichung VARCHAR(50) NOT NULL + bezeichnung VARCHAR(50) NOT NULL ); -INSERT INTO einheit(einheit_id, bezeichnung) VALUES (1, 'stueck'); -INSERT INTO einheit(einheit_id, bezeichnung) VALUES (2, 'menge'); +INSERT OR IGNORE INTO einheit(einheit_id, bezeichnung) VALUES (1, 'stueck'); +INSERT OR IGNORE INTO einheit(einheit_id, bezeichnung) VALUES (2, 'menge'); CREATE TABLE IF NOT EXISTS artikel ( artikel_id INT NOT NULL PRIMARY KEY,