Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 1f0d7da2

Von Moritz Bunkus vor etwa 7 Jahren hinzugefügt

  • ID 1f0d7da266e23a443c47aaa2dbab844e6be50ee4
  • Vorgänger 3845e786
  • Nachfolger 8085e7b1

Datenbankupgrades: unbekannte Control-Felder als Fehler werten

Unterschiede anzeigen:

SL/DBUpgrade2.pm
98 98
      _control_error($form, $file_name, sprintf($locale->text("Missing 'description' field."))) ;
99 99
    }
100 100

  
101
    delete @{$control}{qw(depth applied)};
102

  
103
    my @unknown_keys = grep { !m{^ (?: depends | description | file | ignore | locales | may_fail | priority | tag ) $}x } keys %{ $control };
104
    if (@unknown_keys) {
105
      _control_error($form, $file_name, sprintf($locale->text("Unknown control fields: #1", join(' ', sort({ lc $a cmp lc $b } @unknown_keys)))));
106
    }
107

  
101 108
    $control->{"priority"}  *= 1;
102 109
    $control->{"priority"} ||= 1000;
103 110
    $control->{"file"}       = $file;
104 111

  
105
    delete @{$control}{qw(depth applied)};
106

  
107 112
    $all_controls{$control->{"tag"}} = $control;
108 113

  
109 114
    close(IN);
locale/de/all
3561 3561
  'Units that have already been used (e.g. for parts and services or in invoices or warehouse transactions) cannot be changed.' => 'Einheiten, die bereits in Benutzung sind (z.B. bei einer Warendefinition, einer Rechnung oder bei einer Lagerbuchung) können nachträglich nicht mehr verändert werden.',
3562 3562
  'Unknown Category'            => 'Unbekannte Kategorie',
3563 3563
  'Unknown Link'                => 'Unbekannte Verknüpfung',
3564
  'Unknown control fields: #1'  => 'Unbekannte Kontrollfelder: #1',
3564 3565
  'Unknown dependency \'%s\'.'  => 'Unbekannte Abhängigkeit \'%s\'.',
3565 3566
  'Unknown module: #1'          => 'Unbekanntes Modul #1',
3566 3567
  'Unknown problem type.'       => 'Unbekannter Problem-Typ',
sql/Pg-upgrade2-auth/add_api_token.sql
1 1
-- @tag: add_api_token
2 2
-- @description: Feld 'api_token' in 'session' ergänzen
3 3
-- @depends:
4
-- @charset: utf-8
5 4
ALTER TABLE auth.session ADD COLUMN api_token text;
sql/Pg-upgrade2-auth/add_batch_printing_to_full_access.sql
1 1
-- @tag: add_batch_printing_to_full_access
2 2
-- @description: Gruppe "Vollzugriff" Recht auf Stapeldruck-Menü gewähren
3 3
-- @depends:
4
-- @charset: utf-8
5 4
DELETE FROM auth.group_rights
6 5
WHERE ("right" = 'batch_printing')
7 6
  AND group_id = (
sql/Pg-upgrade2-auth/add_master_rights.sql
1 1
-- @tag: add_master_rights
2 2
-- @description: Rechte in die Datenbank migrieren
3 3
-- @depends: release_3_2_0
4
-- @charset: utf-8
5 4
-- @locales: Master Data
6 5
-- @locales: Create customers and vendors. Edit all vendors. Edit only customers where salesman equals employee (login)
7 6
-- @locales: Create customers and vendors. Edit all vendors. Edit all customers
sql/Pg-upgrade2-auth/password_hashing.sql
1 1
-- @tag: password_hashing
2 2
-- @description: Explicitely set a password hashing algorithm
3 3
-- @depends:
4
-- @charset: utf-8
5 4
UPDATE auth."user"
6 5
  SET password = '{CRYPT}' || password
7 6
  WHERE NOT (password IS NULL)
sql/Pg-upgrade2-auth/release_3_0_0.sql
1 1
-- @tag: release_3_0_0
2 2
-- @description: Abhängigkeitsscript für Release 3.0.0
3 3
-- @depends: remove_menustyle_v4 remove_menustyle_xml add_batch_printing_to_full_access auth_schema_normalization_1 session_content_auto_restore add_api_token password_hashing
4
-- @charset: utf-8
sql/Pg-upgrade2-auth/release_3_2_0.sql
1 1
-- @tag: release_3_2_0
2 2
-- @description: Abhängigkeitsscript für Release 3.2.0, bzw. vergessene 3.1.0
3 3
-- @depends: release_3_0_0 clients_webdav foreign_key_constraints_on_delete  clients
4
-- @charset: utf-8
5 4

  
sql/Pg-upgrade2-auth/release_3_3_0.sql
1 1
-- @tag: release_3_3_0
2 2
-- @description: Abhängigkeitsscript für Release 3.3.0
3 3
-- @depends: release_3_2_0 sales_letter_rights delivery_plan_rights requirement_spec_rights delivery_process_value bank_transaction_rights details_and_report_of_parts productivity_rights rights_for_showing_ar_and_ap_transactions
4
-- @charset: utf-8
sql/Pg-upgrade2-auth/release_3_4_0.sql
1 1
-- @tag: release_3_4_0
2 2
-- @description: Abhängigkeitsscript für Release 3.4.0
3 3
-- @depends: release_3_3_0 client_task_server remove_insecurely_hashed_passwords session_content_primary_key
4
-- @charset: utf-8
5 4

  
sql/Pg-upgrade2-auth/release_3_5_0.sql
1 1
-- @tag: release_3_5_0
2 2
-- @description: Abhängigkeitsscript für Release 3.5.0
3 3
-- @depends: release_3_4_0 record_links_rights other_file_sources2 mail_journal_rights purchase_letter_rights rename_general_ledger_rights all_drafts_edit
4
-- @charset: utf-8
5 4

  
6 5

  
sql/Pg-upgrade2-auth/remove_insecurely_hashed_passwords.sql
1 1
-- @tag: remove_insecurely_hashed_passwords
2 2
-- @description: Passwörter löschen, die mit unsicheren Hash-Verfahren gehasht wurden
3 3
-- @depends: release_3_3_0
4
-- @charset: utf-8
5 4
UPDATE auth.user
6 5
SET password = '*'
7 6
WHERE (password IS NOT NULL)
sql/Pg-upgrade2-auth/remove_menustyle_v4.sql
1 1
-- @tag: remove_menustyle_v4
2 2
-- @description: Menütyp "CSS (oben, neu)" wurde entfernt; also durch v3 ersetzen
3 3
-- @depends:
4
-- @charset: utf-8
5 4
UPDATE auth.user_config
6 5
SET cfg_value = 'v3'
7 6
WHERE ((cfg_key   = 'menustyle')
sql/Pg-upgrade2-auth/remove_menustyle_xml.sql
1 1
-- @tag: remove_menustyle_xml
2 2
-- @description: Menütyp "XUL/XML" wurde entfernt; also durch v3 ersetzen
3 3
-- @depends:
4
-- @charset: utf-8
5 4
UPDATE auth.user_config
6 5
SET cfg_value = 'v3'
7 6
WHERE ((cfg_key   = 'menustyle')
sql/Pg-upgrade2-auth/rename_general_ledger_rights.sql
1 1
-- @tag: rename_general_ledger_rights
2 2
-- @description: Umbennenung des general ledger Rechts
3 3
-- @depends: split_transaction_rights
4
-- @charset: utf-8
5 4
-- @locales: AP/AR Aging & Journal
6 5
UPDATE auth.master_rights SET description='AP/AR Aging & Journal' WHERE name='general_ledger';
sql/Pg-upgrade2-auth/session_content_auto_restore.sql
1 1
-- @tag: session_content_auto_restore
2 2
-- @description: Spalte "auto_restore" in auth.session_content
3 3
-- @depends:
4
-- @charset: utf-8
5 4
ALTER TABLE auth.session_content ADD COLUMN auto_restore boolean;
6 5
UPDATE auth.session_content SET auto_restore = FALSE;
sql/Pg-upgrade2-auth/split_transaction_rights.pl
1 1
# @tag: split_transaction_rights
2 2
# @description: Finanzbuchhaltungsrechte für Buchungen aufspalten
3 3
# @depends: release_3_4_0 master_rights_position_gaps
4
# @charset: utf-8
5 4
# @locales: General Ledger Transaction
6 5
# @locales: AR Transactions
7 6
# @locales: AP Transactions
sql/Pg-upgrade2/bank_accounts_unique_chart_constraint.sql
1 1
-- @tag: bank_accounts_unique_chart_constraint
2 2
-- @description: Bankkonto - Constraint für eindeutiges Konto
3 3
-- @depends: release_3_2_0 bank_accounts
4
-- @encoding: utf-8
5 4

  
6 5
ALTER TABLE bank_accounts ADD CONSTRAINT chart_id_unique UNIQUE (chart_id);
sql/Pg-upgrade2/bankaccounts_reconciliation.sql
1 1
-- @tag: bankaccounts_reconciliation
2 2
-- @description: Kontenabgleichsststartdatum und -saldo
3 3
-- @depends: release_3_2_0
4
-- @encoding: utf-8
5 4

  
6 5
ALTER TABLE bank_accounts ADD COLUMN reconciliation_starting_date DATE;
7 6
ALTER TABLE bank_accounts ADD COLUMN reconciliation_starting_balance numeric(15,5);
sql/Pg-upgrade2/bankaccounts_sortkey_and_obsolete.sql
1 1
-- @tag: bankaccounts_sortkey_and_obsolete
2 2
-- @description: Bankkonto - Sortierreihenfolge und Ungültig
3 3
-- @depends: release_3_2_0
4
-- @encoding: utf-8
5 4

  
6 5
-- default false needed so that get_all_sorted( query => [ obsolete => 0 ] ) works
7 6
ALTER TABLE bank_accounts ADD COLUMN obsolete BOOLEAN NOT NULL DEFAULT false;
sql/Pg-upgrade2/chart_pos_er.sql
1 1
-- @tag: chart_pos_er
2 2
-- @description: pos_er Feld in Konten für die Position ind er Erfolgsrechnung
3 3
-- @depends: release_3_3_0
4
-- @encoding: utf-8
5 4
-- @may_fail: 1
6 5

  
7 6
ALTER TABLE chart ADD COLUMN pos_er INTEGER;
sql/Pg-upgrade2/check_bin_belongs_to_wh_trigger.sql
1 1
-- @tag: check_bin_belongs_to_wh_trigger
2 2
-- @description: Trigger, um sicher zu stellen, dass ein angegebener Lagerplatz auch zum Lager gehört.
3 3
-- @depends: delivery_orders warehouse
4
-- @encoding: utf-8
5 4

  
6 5
CREATE FUNCTION check_bin_belongs_to_wh() RETURNS "trigger"
7 6
  AS 'BEGIN
sql/Pg-upgrade2/csv_import_reports_add_numheaders.sql
1 1
-- @tag: csv_import_reports_add_numheaders
2 2
-- @description: Anzahl der Header-Zeilen in Csv Import Report speichern
3 3
-- @depends: csv_import_report_cache
4
-- @encoding: utf-8
5 4

  
6 5
ALTER TABLE csv_import_reports ADD COLUMN numheaders INTEGER;
7 6
UPDATE csv_import_reports SET numheaders = 1;
sql/Pg-upgrade2/custom_variable_partsgroups.sql
1 1
-- @tag: custom_variable_partsgroups
2 2
-- @description: Beziehung zwischen cvar configs und partsgroups für Filter nach Warengruppen
3 3
-- @depends: release_3_1_0
4
-- @charset: utf-8
5 4

  
6 5
CREATE TABLE custom_variable_config_partsgroups (
7 6
  custom_variable_config_id integer NOT NULL,
sql/Pg-upgrade2/customer_vendor_shipto_add_gln.sql
1 1
-- @tag: customer_vendor_shipto_add_gln
2 2
-- @description: Spalte für GLN bei Kunde/Lieferant und Lieferadresse
3 3
-- @depends: release_3_3_0
4
-- @encoding: utf-8
5 4

  
6 5
ALTER TABLE customer ADD COLUMN       gln TEXT;
7 6
ALTER TABLE vendor   ADD COLUMN       gln TEXT;
sql/Pg-upgrade2/defaults_add_quick_search_modules.sql
1 1
-- @tag: defaults_add_quick_search_modules
2 2
-- @description: Mandantenkonfiguration für Schnellsuche
3 3
-- @depends: release_3_4_0
4
-- @encoding: utf-8
5 4

  
6 5
ALTER TABLE defaults ADD COLUMN quick_search_modules TEXT[];
7 6

  
sql/Pg-upgrade2/defaults_drop_delivery_plan_calculate_transferred_do.sql
1 1
-- @tag: defaults_drop_delivery_plan_calculate_transferred_do
2 2
-- @description: Entferne Einstellung für Lieferplan, nur ausgelagerte Lieferscheine zu berücksichtigen
3 3
-- @depends: defaults_add_delivery_plan_config
4
-- @encoding: utf-8
5 4

  
6 5
ALTER TABLE defaults DROP COLUMN delivery_plan_calculate_transferred_do;
sql/Pg-upgrade2/defaults_order_warn_duplicate_parts.sql
1 1
-- @tag: defaults_order_warn_duplicate_parts
2 2
-- @description: Mandantenkonfiguration: Warnung bei doppelten Artikeln in Aufträgen
3 3
-- @depends: release_3_3_0
4
-- @encoding: utf-8
5 4

  
6 5
ALTER TABLE defaults ADD COLUMN order_warn_duplicate_parts BOOLEAN DEFAULT TRUE;
sql/Pg-upgrade2/delete_translations_on_delivery_term_delete.sql
1 1
-- @tag: delete_translations_on_delivery_term_delete
2 2
-- @description: Übersetzungen löschen, wenn Lieferbedingung gelöscht wird
3 3
-- @depends: delivery_terms
4
-- @encoding: utf-8
5 4

  
6 5
CREATE OR REPLACE FUNCTION generic_translations_delete_on_delivery_terms_delete_trigger()
7 6
RETURNS TRIGGER AS $$
sql/Pg-upgrade2/delete_translations_on_payment_term_delete.sql
1 1
-- @tag: delete_translations_on_payment_term_delete
2 2
-- @description: Übersetzungen löschen, wenn Lieferbedingung gelöscht wird
3 3
-- @depends: payment_terms_translation2
4
-- @encoding: utf-8
5 4

  
6 5
CREATE OR REPLACE FUNCTION generic_translations_delete_on_payment_terms_delete_trigger()
7 6
RETURNS TRIGGER AS $$
sql/Pg-upgrade2/delete_translations_on_tax_delete.sql
1 1
-- @tag: delete_translations_on_tax_delete
2 2
-- @description: Übersetzungen löschen, wenn Steuer gelöscht wird
3 3
-- @depends: release_3_0_0
4
-- @encoding: utf-8
5 4

  
6 5
CREATE OR REPLACE FUNCTION generic_translations_delete_on_tax_delete_trigger()
7 6
RETURNS TRIGGER AS $$
sql/Pg-upgrade2/delivery_terms.sql
1 1
-- @tag: delivery_terms
2 2
-- @description: Neue Tabelle und Spalten für Lieferbedingungen
3 3
-- @depends: release_3_0_0
4
-- @encoding: utf-8
5 4

  
6 5
CREATE TABLE delivery_terms (
7 6
       id                        integer        NOT NULL DEFAULT nextval('id'),
sql/Pg-upgrade2/drop_gifi_2.sql
1 1
-- @tag: drop_gifi_2
2 2
-- @description: Spalte gifi_accno vollständig entfernen
3 3
-- @depends: release_3_0_0 drop_gifi
4
-- @encoding: utf-8
5 4

  
6 5
ALTER TABLE "vendor" DROP COLUMN "gifi_accno";
sql/Pg-upgrade2/employee_drop_columns.sql
2 2
-- @description: Obsolete Felder in employee entfernt und Datenfelder zum Speichern für die Historie der Mitarbeiter (nach Löschen eines Benutzer) hinzugefügt. Aktuell alle Felder die der Benutzer unter persönliche Einstellungen ändern kann
3 3
-- @depends: release_3_0_0
4 4
-- @ignore: 0
5
-- @charset: utf-8
6 5
ALTER TABLE employee DROP COLUMN addr1;
7 6
ALTER TABLE employee DROP COLUMN addr2;
8 7
ALTER TABLE employee DROP COLUMN addr3;
sql/Pg-upgrade2/files.sql
1 1
-- @tag: files
2 2
-- @description: Tabelle für Files
3
-- @charset: UTF-8
4 3
-- @depends: release_3_4_1
5 4
CREATE TABLE files(
6 5
  id                          SERIAL PRIMARY KEY,
sql/Pg-upgrade2/first_aggregator.sql
1 1
-- @tag: first_aggregator
2 2
-- @description: SQL Aggregat Funktion FIRST
3 3
-- @depends: release_3_0_0
4
-- @encoding: utf-8
5 4

  
6 5
CREATE OR REPLACE FUNCTION public.first_agg ( anyelement, anyelement )
7 6
RETURNS anyelement LANGUAGE SQL IMMUTABLE STRICT AS $$
sql/Pg-upgrade2/get_shipped_qty_config.sql
1 1
-- @tag: get_shipped_qty_config
2 2
-- @description: Mandantenweite Konfiguration für das Verhalten von Liefermengenabgleich
3 3
-- @depends: release_3_4_1
4
-- @encoding: utf-8
5 4

  
6 5
ALTER TABLE defaults ADD COLUMN shipped_qty_require_stock_out    BOOLEAN NOT NULL DEFAULT FALSE;
7 6
ALTER TABLE defaults ADD COLUMN shipped_qty_fill_up              BOOLEAN NOT NULL DEFAULT TRUE;
sql/Pg-upgrade2/inventory_fix_shippingdate_assemblies.sql
1 1
-- @tag: inventory_fix_shippingdate_assemblies
2 2
-- @description: Shippingdate für assemblies und assembly_items nachträglich wie itime setzen.
3 3
-- @depends: release_3_4_0 warehouse transfer_type_assembled
4
-- @encoding: utf-8
5 4
update inventory set shippingdate = itime where comment ilike 'Verbraucht %' and shippingdate is null;
6 5
update inventory set shippingdate = itime where shippingdate is null and parts_id in (select id from parts where assembly);
sql/Pg-upgrade2/inventory_shippingdate_not_null.sql
1 1
-- @tag: inventory_shippingdate_not_null
2 2
-- @description: shippingdate not null, leeres shippingdate für nachträglich wie itime setzen
3 3
-- @depends: release_3_4_0 inventory_fix_shippingdate_assemblies
4
-- @encoding: utf-8
5 4

  
6 5
UPDATE inventory SET shippingdate = itime WHERE shippingdate IS NULL;
7 6
ALTER TABLE inventory ALTER COLUMN shippingdate SET NOT NULL;
sql/Pg-upgrade2/invoice_positions.pl
1 1
# @tag: invoice_positions
2 2
# @description: Spalte für Positionen der Einträge in Rechnungen
3 3
# @depends: release_3_1_0
4
# @encoding: utf-8
5 4
package SL::DBUpgrade2::invoice_positions;
6 5

  
7 6
use strict;
sql/Pg-upgrade2/invoices_amount_paid_not_null.sql
1 1
-- @tag: invoices_amount_paid_not_null
2 2
-- @description: Bei Rechnungen die drei Spalten "amount", "netamount" und "paid" auf NOT NULL setzen
3 3
-- @depends: release_3_2_0
4
-- @encoding: utf-8
5 4

  
6 5
UPDATE ar SET amount    = 0 WHERE amount    IS NULL;
7 6
ALTER TABLE ar ALTER COLUMN amount    SET NOT NULL;
sql/Pg-upgrade2/letter_date_type.sql
1 1
-- @tag: letter_date_type
2 2
-- @description: Briefe: Datumsfeld als Datum speichern
3 3
-- @depends: release_3_2_0 letter
4
-- @encoding: utf-8
5 4
ALTER TABLE letter ADD column date_date DATE;
6 5
UPDATE letter SET date_date = date::DATE;
7 6
ALTER TABLE letter DROP COLUMN date;
sql/Pg-upgrade2/letter_vendorletter.sql
1 1
-- @tag: letter_vendorletter
2 2
-- @description: Briefe jetzt auch für Lieferanten
3 3
-- @depends: release_3_4_1
4
-- @encoding: utf-8
5 4

  
6 5
ALTER TABLE letter ALTER COLUMN customer_id DROP NOT NULL;
7 6
ALTER TABLE letter ADD COLUMN vendor_id INTEGER REFERENCES vendor(id);
sql/Pg-upgrade2/oe_customer_vendor_fkeys.sql
1 1
-- @tag: oe_customer_vendor_fkeys
2 2
-- @description: Foreign Keys für customer und vendor in oe
3 3
-- @depends: release_2_6_3
4
-- @timestamp: 1317380460
5 4
UPDATE oe SET customer_id = NULL WHERE customer_id = 0;
6 5
UPDATE oe SET   vendor_id = NULL WHERE   vendor_id = 0;
7 6

  
sql/Pg-upgrade2/orderitems_delivery_order_items_positions.pl
1 1
# @tag: orderitems_delivery_order_items_positions
2 2
# @description: Spalte für Positionen der Einträge in Angeboten/Auftträgen und Lieferscheinen.
3 3
# @depends: release_3_1_0
4
# @encoding: utf-8
5 4
package SL::DBUpgrade2::orderitems_delivery_order_items_positions;
6 5

  
7 6
use strict;
sql/Pg-upgrade2/partsgroup_sortkey_obsolete.sql
1 1
-- @tag: partsgroup_sortkey_obsolete
2 2
-- @description: Sortierreihenfolge und ungültig für Warengruppen
3
-- @charset: UTF-8
4 3
-- @depends: release_3_4_1
5 4
-- @ignore: 0
6 5

  
sql/Pg-upgrade2/payment_terms_obsolete.sql
1 1
-- @tag: payment_terms_obsolete
2 2
-- @description: Zahlungsbedingungen ungültig setzen
3
-- @charset: UTF-8
4 3
-- @depends: release_3_4_1
5 4
-- @ignore: 0
6 5

  
sql/Pg-upgrade2/periodic_invoices_first_billing_date.sql
1 1
-- @tag: periodic_invoices_first_billing_date
2 2
-- @description: Wiederkehrende Rechnungen: Feld für erstes Rechnungsdatum
3 3
-- @depends: periodic_invoices
4
-- @charset: utf-8
5 4
ALTER TABLE periodic_invoices_configs ADD COLUMN first_billing_date DATE;
sql/Pg-upgrade2/price_rules.sql
1 1
-- @tag: price_rules
2 2
-- @description:  Preismatrix Tabellen
3 3
-- @depends: release_3_1_0
4
-- @encoding: utf-8
5 4

  
6 5
CREATE TABLE price_rules (
7 6
  id       SERIAL PRIMARY KEY,
sql/Pg-upgrade2/price_source_client_config.sql
1 1
-- @tag: price_source_client_config
2 2
-- @description: Preisquellen: Preisquellen ausschaltbar per Mandant
3 3
-- @depends: release_3_1_0
4
-- @encoding: utf-8
5 4

  
6 5
ALTER TABLE defaults ADD disabled_price_sources TEXT[];
sql/Pg-upgrade2/pricegroup_sortkey_obsolete.sql
1 1
-- @tag: pricegroup_sortkey_obsolete
2 2
-- @description: Sortierreihenfolge und ungültig für Preisgruppen
3
-- @charset: UTF-8
4 3
-- @depends: release_3_4_1
5 4
-- @ignore: 0
6 5

  
sql/Pg-upgrade2/project_mtime_trigger.sql
1 1
-- @tag: project_mtime_trigger
2 2
-- @description: mtime-Trigger für Tabelle project hinzufügen.
3 3
-- @depends: release_3_3_0
4
-- @encoding: utf-8
5 4

  
6 5
CREATE TRIGGER mtime_project BEFORE UPDATE ON project FOR EACH ROW EXECUTE PROCEDURE set_mtime();
sql/Pg-upgrade2/recorditem_active_dicount_source.sql
1 1
-- @tag: recorditem_active_record_source
2 2
-- @description: Preisquellen: Rabatte
3 3
-- @depends: release_3_1_0 recorditem_active_price_source
4
-- @encoding: utf-8
5 4

  
6 5
ALTER TABLE orderitems           ADD COLUMN active_discount_source TEXT NOT NULL DEFAULT '';
7 6
ALTER TABLE delivery_order_items ADD COLUMN active_discount_source TEXT NOT NULL DEFAULT '';
sql/Pg-upgrade2/recorditem_active_price_source.sql
1 1
-- @tag: recorditem_active_price_source
2 2
-- @description: Preisquelle in Belegpositionen
3 3
-- @depends: release_3_1_0
4
-- @encoding: utf-8
5 4

  
6 5
ALTER TABLE orderitems           ADD COLUMN active_price_source TEXT NOT NULL DEFAULT '';
7 6
ALTER TABLE delivery_order_items ADD COLUMN active_price_source TEXT NOT NULL DEFAULT '';
sql/Pg-upgrade2/remove_redundant_customer_vendor_delete_triggers.sql
1 1
-- @tag: remove_redundant_customer_vendor_delete_triggers
2 2
-- @description: Entfernt doppelte/falsche Trigger zum Aufräumen nach dem Löschen von Kunden/Lieferanten
3 3
-- @depends: release_3_1_0
4
-- @encoding: utf-8
5 4

  
6 5
-- drop triggers
7 6
DROP TRIGGER IF EXISTS del_customer ON customer;
sql/Pg-upgrade2/remove_redundant_cvar_delete_triggers.sql
1 1
-- @tag: remove_redundant_cvar_delete_triggers
2 2
-- @description: Entfernt doppelte Trigger zum Löschen von benutzerdefinierten Variablen
3 3
-- @depends: custom_variables_delete_via_trigger custom_variables_delete_via_trigger_2 delete_cvars_on_trans_deletion
4
-- @encoding: utf-8
5 4

  
6 5
-- drop triggers
7 6
DROP TRIGGER IF EXISTS delete_orderitems_dependencies           ON orderitems;
sql/Pg-upgrade2/sales_quotation_order_probability_expected_billing_date.sql
1 1
-- @tag: sales_quotation_order_probability_expected_billing_date
2
-- @charset: utf-8
3 2
-- @description: Weitere Felder im Angebot: Angebotswahrscheinlichkeit, voraussichtliches Abrechnungsdatum
4 3
ALTER TABLE oe
5 4
  ADD COLUMN order_probability     INTEGER,
sql/Pg-upgrade2/shop_parts.sql
1 1
-- @tag: shop_parts
2 2
-- @description: Add tables for part information for shop
3
-- @charset: UTF-8
4 3
-- @depends: release_3_5_0 shops
5 4
-- @ignore: 0
6 5

  
sql/Pg-upgrade2/shopimages.sql
1 1
-- @tag:shopimages
2 2
-- @description: Tabelle für Shopbilder und zusätzliche Konfiguration und valid_type für Filemanagement
3
-- @charset: UTF-8
4 3
-- @depends: release_3_5_0 files shop_parts
5 4
-- @ignore: 0
6 5

  
sql/Pg-upgrade2/shopimages_2.sql
1 1
-- @tag:shopimages_2
2 2
-- @description: Umbennung der Spalten für Weite und Breite in die Weite und Breite des orginal Bildes
3
-- @charset: UTF-8
4 3
-- @depends: release_3_5_0 files shop_parts shopimages
5 4
-- @ignore: 0
6 5

  
sql/Pg-upgrade2/shopimages_3.sql
1 1
-- @tag:shopimages_3
2 2
-- @description: Neue Spalte object_id um eine group_by Klausel zu haben für act_as_list
3
-- @charset: UTF-8
4 3
-- @depends: release_3_5_0 files shop_parts shopimages
5 4
-- @ignore: 0
6 5

  
sql/Pg-upgrade2/shops_1.sql
1 1
-- @tag: shop_1
2 2
-- @description: Add tables for part information for shop
3
-- @charset: UTF-8
4 3
-- @depends: shops
5 4
-- @ignore: 0
6 5

  
sql/Pg-upgrade2/shops_2.sql
1 1
-- @tag: shop_2
2 2
-- @description: Add tables for part information for shop
3
-- @charset: UTF-8
4 3
-- @depends: shops
5 4
-- @ignore: 0
6 5

  
sql/Pg-upgrade2/shops_3.sql
1 1
-- @tag: shop_3
2 2
-- @description: Add columns itime and mtime and transaction_description for table shops
3
-- @charset: UTF-8
4 3
-- @depends: shops
5 4
-- @ignore: 0
6 5

  
sql/Pg-upgrade2/transfer_out_sales_invoice.sql
1 1
-- @tag: transfer_out_sales_invoice
2 2
-- @description: Felder für das Feature "Auslagern beim Buchen von Verkaufsrechnungen".
3 3
-- @depends: warehouse_add_delivery_order_items_stock_id
4
-- @encoding: utf-8
5 4

  
6 5
ALTER TABLE inventory ADD COLUMN invoice_id      INTEGER REFERENCES invoice(id);
7 6
ALTER TABLE defaults  ADD COLUMN is_transfer_out BOOLEAN NOT NULL DEFAULT FALSE;
sql/Pg-upgrade2/transfer_type_assembled.sql
1 1
-- @tag: transfer_type_assembled
2 2
-- @description: Transfertyp "gefertigt" wird benötigt.
3 3
-- @depends: release_3_4_0 warehouse
4
-- @encoding: utf-8
5 4

  
6 5
INSERT INTO transfer_type (direction, description, sortkey) VALUES ('in', 'assembled', (SELECT COALESCE(MAX(sortkey), 0) + 1 FROM transfer_type));
sql/Pg-upgrade2/trigram_indices.sql
1 1
-- @tag: trigram_indices
2 2
-- @description: Trigram Indizes für häufig durchsuchte Spalten
3 3
-- @depends: release_3_5_0 shops
4
-- @encoding: utf-8
5 4
-- @ignore: 1
6 5

  
7 6

  
sql/Pg-upgrade2/trigram_indices_webshop.sql
1 1
-- @tag: trigram_indices_webshop
2 2
-- @description: Trigram Indizes für Fuzzysearch bei der Kundensuche im Shopmodul
3 3
-- @depends: release_3_5_0 shops
4
-- @encoding: utf-8
5 4
-- @ignore: 1
6 5

  
7 6
CREATE INDEX customer_street_gin_trgm_idx            ON customer        USING gin (street                  gin_trgm_ops);
sql/Pg-upgrade2/user_preferences.sql
1 1
-- @tag: user_preferences
2 2
-- @description: Benutzereinstellungen
3 3
-- @depends: release_3_4_1
4
-- @encoding: utf-8
5 4

  
6 5
CREATE TABLE user_preferences (
7 6
  id         SERIAL PRIMARY KEY,

Auch abrufbar als: Unified diff