Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2baa29eb

Von Bernd Bleßmann vor mehr als 1 Jahr hinzugefügt

  • ID 2baa29ebde79b12eff6c2ef15cb9e350b143866f
  • Vorgänger ac606e18
  • Nachfolger 0064769c

Kundenspez. Preise um Beschreibung u. Langtext erweitern: DB u. Rose

Unterschiede anzeigen:

SL/DB/MetaSetup/PartCustomerPrice.pm
9 9
__PACKAGE__->meta->table('part_customer_prices');
10 10

  
11 11
__PACKAGE__->meta->columns(
12
  customer_id         => { type => 'integer', not_null => 1 },
13
  customer_partnumber => { type => 'text', default => '' },
14
  id                  => { type => 'serial', not_null => 1 },
15
  lastupdate          => { type => 'date', default => 'now()' },
16
  parts_id            => { type => 'integer', not_null => 1 },
17
  price               => { type => 'numeric', default => '0', precision => 15, scale => 5 },
18
  sortorder           => { type => 'integer', default => '0' },
12
  customer_id          => { type => 'integer', not_null => 1 },
13
  customer_partnumber  => { type => 'text', default => '' },
14
  id                   => { type => 'serial', not_null => 1 },
15
  lastupdate           => { type => 'date', default => 'now()' },
16
  part_description     => { type => 'text' },
17
  part_longdescription => { type => 'text' },
18
  parts_id             => { type => 'integer', not_null => 1 },
19
  price                => { type => 'numeric', default => '0', precision => 15, scale => 5 },
20
  sortorder            => { type => 'integer', default => '0' },
19 21
);
20 22

  
21 23
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
sql/Pg-upgrade2/part_customer_prices_add_description.sql
1
-- @tag: part_customer_prices_add_description
2
-- @description: Kundenspezifischen Preisen Beschreibung und Bemerkungen/Langtext hinzufügen
3
-- @depends: create_part_customerprices
4

  
5
ALTER TABLE part_customer_prices ADD COLUMN part_description     TEXT;
6
ALTER TABLE part_customer_prices ADD COLUMN part_longdescription TEXT;

Auch abrufbar als: Unified diff