Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5d57855d

Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt

  • ID 5d57855d7343491817b5a85388867742e2ea353f
  • Vorgänger 43d398f6
  • Nachfolger 05ec372b

EmailJournal: DB-Tabelle für feste Verknüpfung von Email mit Angebot/Auftrag

Unterschiede anzeigen:

SL/DB/HardRecordLinksEmailJournalAndOrder.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::HardRecordLinksEmailJournalAndOrder;
5

  
6
use strict;
7

  
8
use SL::DB::MetaSetup::HardRecordLinksEmailJournalAndOrder;
9
use SL::DB::Manager::HardRecordLinksEmailJournalAndOrder;
10

  
11
__PACKAGE__->meta->initialize;
12

  
13
1;
SL/DB/Helper/ALL.pm
73 73
use SL::DB::GLTransaction;
74 74
use SL::DB::GenericTranslation;
75 75
use SL::DB::Greeting;
76
use SL::DB::HardRecordLinksEmailJournalAndOrder;
76 77
use SL::DB::History;
77 78
use SL::DB::Inventory;
78 79
use SL::DB::Invoice;
SL/DB/Helper/Mappings.pm
155 155
  generic_translations           => 'generic_translation',
156 156
  gl                             => 'GLTransaction',
157 157
  greetings                      => 'greeting',
158
  hard_record_links_email_journal_and_order => 'HardRecordLinksEmailJournalAndOrder',
158 159
  history_erp                    => 'history',
159 160
  inventory                      => 'inventory',
160 161
  invoice                        => 'invoice_item',
SL/DB/Manager/HardRecordLinksEmailJournalAndOrder.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::Manager::HardRecordLinksEmailJournalAndOrder;
5

  
6
use strict;
7

  
8
use parent qw(SL::DB::Helper::Manager);
9

  
10
sub object_class { 'SL::DB::HardRecordLinksEmailJournalAndOrder' }
11

  
12
__PACKAGE__->make_manager_methods;
13

  
14
1;
SL/DB/MetaSetup/HardRecordLinksEmailJournalAndOrder.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::HardRecordLinksEmailJournalAndOrder;
4

  
5
use strict;
6

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

  
9
__PACKAGE__->meta->table('hard_record_links_email_journal_and_order');
10

  
11
__PACKAGE__->meta->columns(
12
  email_journal_id => { type => 'integer', not_null => 1 },
13
  itime            => { type => 'timestamp', default => 'now()' },
14
  order_id         => { type => 'integer', not_null => 1 },
15
);
16

  
17
__PACKAGE__->meta->primary_key_columns([ 'email_journal_id', 'order_id' ]);
18

  
19
__PACKAGE__->meta->allow_inline_column_values(1);
20

  
21
__PACKAGE__->meta->foreign_keys(
22
  email_journal => {
23
    class       => 'SL::DB::EmailJournal',
24
    key_columns => { email_journal_id => 'id' },
25
  },
26

  
27
  order => {
28
    class       => 'SL::DB::Order',
29
    key_columns => { order_id => 'id' },
30
  },
31
);
32

  
33
1;
34
;
sql/Pg-upgrade2/hard_record_links_email_journal_and_order.sql
1
-- @tag: hard_record_links_email_journal_and_order
2
-- @description: Add hard record links for email journal and order
3
-- @depends: release_3_8_0
4
-- @ignore: 0
5

  
6
CREATE TABLE hard_record_links_email_journal_and_order (
7
  email_journal_id INTEGER NOT NULL REFERENCES email_journal(id),
8
  order_id INTEGER NOT NULL REFERENCES oe(id),
9
  itime TIMESTAMP without time zone DEFAULT now(),
10
  PRIMARY KEY (email_journal_id, order_id)
11
);

Auch abrufbar als: Unified diff