Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b8b112a3

Von Sven Schöling vor mehr als 11 Jahren hinzugefügt

  • ID b8b112a39bd601b0bc717646d78de470631da22a
  • Vorgänger c0931303
  • Nachfolger 2d7e4203

MetaSetup neu generiert

Unterschiede anzeigen:

SL/DB/MetaSetup/GenericTranslation.pm
6 6

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

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

  
12
  columns => [
13
    id               => { type => 'serial', not_null => 1 },
14
    language_id      => { type => 'integer' },
15
    translation_type => { type => 'varchar', length => 100, not_null => 1 },
16
    translation_id   => { type => 'integer' },
17
    translation      => { type => 'text' },
18
  ],
11
__PACKAGE__->meta->columns(
12
  id               => { type => 'serial', not_null => 1 },
13
  language_id      => { type => 'integer' },
14
  translation_type => { type => 'varchar', length => 100, not_null => 1 },
15
  translation_id   => { type => 'integer' },
16
  translation      => { type => 'text' },
17
);
19 18

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

  
22
  foreign_keys => [
23
    language => {
24
      class       => 'SL::DB::Language',
25
      key_columns => { language_id => 'id' },
26
    },
27
  ],
28
);
21
# __PACKAGE__->meta->initialize;
29 22

  
30 23
1;
31 24
;

Auch abrufbar als: Unified diff