Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 26892ad4

Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt

  • ID 26892ad4061a94cce873952f1e72d4f7badf6e3b
  • Vorgänger ba6a1366
  • Nachfolger b35bf9ab

Rose-Model für neue Tabelle currencies

Unterschiede anzeigen:

SL/DB/Currency.pm
1
# This file has been auto-generated only because it didn't exist.
2
# Feel free to modify it at will; it will not be overwritten automatically.
3

  
4
package SL::DB::Currency;
5

  
6
use strict;
7

  
8
use SL::DB::MetaSetup::Currency;
9

  
10
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
11
__PACKAGE__->meta->make_manager_class;
12

  
13
1;
SL/DB/Helper/ALL.pm
20 20
use SL::DB::Contact;
21 21
use SL::DB::CsvImportProfile;
22 22
use SL::DB::CsvImportProfileSetting;
23
use SL::DB::Currency;
23 24
use SL::DB::CustomVariable;
24 25
use SL::DB::CustomVariableConfig;
25 26
use SL::DB::CustomVariableValidity;
SL/DB/Helper/Mappings.pm
55 55
  csv_import_reports             => 'csv_import_report',
56 56
  csv_import_report_rows         => 'csv_import_report_row',
57 57
  csv_import_report_status       => 'csv_import_report_status',
58
  currencies                     => 'currency',
58 59
  custom_variable_configs        => 'custom_variable_config',
59 60
  custom_variables               => 'custom_variable',
60 61
  custom_variables_validity      => 'custom_variable_validity',
SL/DB/MetaSetup/Currency.pm
1
# This file has been auto-generated. Do not modify it; it will be overwritten
2
# by rose_auto_create_model.pl automatically.
3
package SL::DB::Currency;
4

  
5
use strict;
6

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

  
9
__PACKAGE__->meta->setup(
10
  table   => 'currencies',
11

  
12
  columns => [
13
    id   => { type => 'serial', not_null => 1 },
14
    name => { type => 'text', not_null => 1 },
15
  ],
16

  
17
  primary_key_columns => [ 'id' ],
18

  
19
  unique_key => [ 'name' ],
20
);
21

  
22
1;
23
;
SL/DB/MetaSetup/Default.pm
71 71
  ],
72 72

  
73 73
  primary_key_columns => [ 'id' ],
74

  
75
  allow_inline_column_values => 1,
76

  
77
  foreign_keys => [
78
    currency => {
79
      class       => 'SL::DB::Currency',
80
      key_columns => { currency_id => 'id' },
81
    },
82
  ],
74 83
);
75 84

  
76 85
1;

Auch abrufbar als: Unified diff