Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5991c23e

Von Sven Schöling vor etwa 14 Jahren hinzugefügt

  • ID 5991c23e862cb7be141c8aab0b2e645fea32fca1
  • Vorgänger 7148af2b
  • Nachfolger 19f96ce5

Leads aus den ROSE Models entfernt (kommt aus der CRM, wird nicht von der ERP verwaltet)

Unterschiede anzeigen:

SL/DB/Helpers/ALL.pm
41 41
use SL::DB::Invoice;
42 42
use SL::DB::InvoiceItem;
43 43
use SL::DB::Language;
44
use SL::DB::Lead;
45 44
use SL::DB::License;
46 45
use SL::DB::LicenseInvoice;
47 46
use SL::DB::MakeModel;
SL/DB/Helpers/Mappings.pm
2 2

  
3 3
use strict;
4 4

  
5
# these will not be managed as Rose::DB models, because they are not normalized
6
# significant changes are needed to get them done.
5
# these will not be managed as Rose::DB models, because they are not normalized,
6
# significant changes are needed to get them done, or they were done by CRM.
7 7
my @lxoffice_blacklist_permanent = qw(
8
  leads
8 9
);
9 10

  
10 11
# these are not managed _yet_, but will hopefully at some point.
......
51 52
  inventory                      => 'inventory',
52 53
  invoice                        => 'invoice_item',
53 54
  language                       => 'language',
54
  leads                          => 'lead',
55 55
  license                        => 'license',
56 56
  licenseinvoice                 => 'license_invoice',
57 57
  makemodel                      => 'make_model',
SL/DB/Lead.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::Lead;
5

  
6
use strict;
7

  
8
use SL::DB::MetaSetup::Lead;
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/MetaSetup/Lead.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::Lead;
4

  
5
use strict;
6

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

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

  
12
  columns => [
13
    id   => { type => 'integer', not_null => 1, sequence => 'id' },
14
    lead => { type => 'varchar', length => 50 },
15
  ],
16

  
17
  primary_key_columns => [ 'id' ],
18
);
19

  
20
1;
21
;
sql/Pg-upgrade2/schema_nomalization_2.sql
1
-- @tag: schema_normalization_2
2
-- @description: Datenbankschema Normalisierungen Teil 2
3
-- @depends: schema_normalization_1
4

  
5
ALTER TABLE acc_trans ADD COLUMN id SERIAL PRIMARY KEY;
6
ALTER TABLE audittrail ADD COLUMN id SERIAL PRIMARY KEY;
7
ALTER TABLE customertax ADD COLUMN id SERIAL PRIMARY KEY;
8
ALTER TABLE datev ADD COLUMN id SERIAL PRIMARY KEY;
9
ALTER TABLE defaults ADD COLUMN id SERIAL PRIMARY KEY;
10
ALTER TABLE department ADD PRIMARY KEY (id);
11
ALTER TABLE dpt_trans ADD COLUMN id SERIAL PRIMARY KEY;
12
ALTER TABLE exchangerate ADD COLUMN id SERIAL PRIMARY KEY;
13
ALTER TABLE finanzamt ADD COLUMN id SERIAL PRIMARY KEY;
14
ALTER TABLE follow_up_access ADD COLUMN id SERIAL PRIMARY KEY;
15
ALTER TABLE gifi ADD COLUMN id SERIAL PRIMARY KEY;
16
ALTER TABLE inventory ADD COLUMN id SERIAL PRIMARY KEY;
17
ALTER TABLE licenseinvoice ADD COLUMN id SERIAL PRIMARY KEY;
18
ALTER TABLE leads ADD PRIMARY KEY (id);
19
ALTER TABLE partsgroup ADD PRIMARY KEY (id);
20
ALTER TABLE partstax ADD COLUMN id SERIAL PRIMARY KEY;
21
ALTER TABLE prices ADD COLUMN id SERIAL PRIMARY KEY;
22
ALTER TABLE record_links ADD COLUMN id SERIAL PRIMARY KEY;
23
ALTER TABLE rmaitems ADD PRIMARY KEY (id);
24
ALTER TABLE status ADD COLUMN id SERIAL PRIMARY KEY;
25
ALTER TABLE tax_zones ADD PRIMARY KEY (id);
26
ALTER TABLE todo_user_config ADD COLUMN id SERIAL PRIMARY KEY;
27
ALTER TABLE translation ADD COLUMN id SERIAL PRIMARY KEY;
28
ALTER TABLE translation_payment_terms ADD COLUMN id SERIAL PRIMARY KEY;
29
ALTER TABLE units_language ADD COLUMN id SERIAL PRIMARY KEY;
30
ALTER TABLE vendortax ADD COLUMN id SERIAL PRIMARY KEY;
sql/Pg-upgrade2/schema_normalization_2.sql
1
-- @tag: schema_normalization_2
2
-- @description: Datenbankschema Normalisierungen Teil 2
3
-- @depends: schema_normalization_1
4

  
5
ALTER TABLE acc_trans ADD COLUMN id SERIAL PRIMARY KEY;
6
ALTER TABLE audittrail ADD COLUMN id SERIAL PRIMARY KEY;
7
ALTER TABLE customertax ADD COLUMN id SERIAL PRIMARY KEY;
8
ALTER TABLE datev ADD COLUMN id SERIAL PRIMARY KEY;
9
ALTER TABLE defaults ADD COLUMN id SERIAL PRIMARY KEY;
10
ALTER TABLE department ADD PRIMARY KEY (id);
11
ALTER TABLE dpt_trans ADD COLUMN id SERIAL PRIMARY KEY;
12
ALTER TABLE exchangerate ADD COLUMN id SERIAL PRIMARY KEY;
13
ALTER TABLE finanzamt ADD COLUMN id SERIAL PRIMARY KEY;
14
ALTER TABLE follow_up_access ADD COLUMN id SERIAL PRIMARY KEY;
15
ALTER TABLE gifi ADD COLUMN id SERIAL PRIMARY KEY;
16
ALTER TABLE inventory ADD COLUMN id SERIAL PRIMARY KEY;
17
ALTER TABLE licenseinvoice ADD COLUMN id SERIAL PRIMARY KEY;
18
ALTER TABLE partsgroup ADD PRIMARY KEY (id);
19
ALTER TABLE partstax ADD COLUMN id SERIAL PRIMARY KEY;
20
ALTER TABLE prices ADD COLUMN id SERIAL PRIMARY KEY;
21
ALTER TABLE record_links ADD COLUMN id SERIAL PRIMARY KEY;
22
ALTER TABLE rmaitems ADD PRIMARY KEY (id);
23
ALTER TABLE status ADD COLUMN id SERIAL PRIMARY KEY;
24
ALTER TABLE tax_zones ADD PRIMARY KEY (id);
25
ALTER TABLE todo_user_config ADD COLUMN id SERIAL PRIMARY KEY;
26
ALTER TABLE translation ADD COLUMN id SERIAL PRIMARY KEY;
27
ALTER TABLE translation_payment_terms ADD COLUMN id SERIAL PRIMARY KEY;
28
ALTER TABLE units_language ADD COLUMN id SERIAL PRIMARY KEY;
29
ALTER TABLE vendortax ADD COLUMN id SERIAL PRIMARY KEY;

Auch abrufbar als: Unified diff