Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 70167494

Von Moritz Bunkus vor fast 11 Jahren hinzugefügt

  • ID 701674940c1daf886257a14c5e933fcda2a1883d
  • Vorgänger e0e3eee4
  • Nachfolger aef6b5ce

RDBO-Model von delivery_terms neu erzeugen, als Mapping hinzufügen

Unterschiede anzeigen:

SL/DB/Helper/Mappings.pm
120 120
  delivery_orders                => 'delivery_order',
121 121
  delivery_order_items           => 'delivery_order_item',
122 122
  delivery_order_items_stock     => 'delivery_order_items_stock',
123
  delivery_terms                 => 'delivery_term',
123 124
  department                     => 'department',
124 125
  drafts                         => 'draft',
125 126
  dunning                        => 'dunning',
SL/DB/MetaSetup/DeliveryTerm.pm
6 6

  
7 7
use base qw(SL::DB::Object);
8 8

  
9
__PACKAGE__->meta->setup(
10
  table   => 'delivery_terms',
9
__PACKAGE__->meta->table('delivery_terms');
11 10

  
12
  columns => [
13
    id               => { type => 'integer', not_null => 1, sequence => 'id' },
14
    description      => { type => 'text' },
15
    description_long => { type => 'text' },
16
    sortkey          => { type => 'integer', not_null => 1 },
17
    itime            => { type => 'timestamp', default => 'now()' },
18
    mtime            => { type => 'timestamp' },
19
  ],
11
__PACKAGE__->meta->columns(
12
  description      => { type => 'text' },
13
  description_long => { type => 'text' },
14
  id               => { type => 'integer', not_null => 1, sequence => 'id' },
15
  itime            => { type => 'timestamp', default => 'now()' },
16
  mtime            => { type => 'timestamp' },
17
  sortkey          => { type => 'integer', not_null => 1 },
18
);
20 19

  
21
  primary_key_columns => [ 'id' ],
20
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
22 21

  
23
  allow_inline_column_values => 1,
24
);
22
__PACKAGE__->meta->allow_inline_column_values(1);
25 23

  
26 24
1;
27 25
;

Auch abrufbar als: Unified diff