Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d2c5f647

Von Moritz Bunkus vor etwa 9 Jahren hinzugefügt

  • ID d2c5f6474ebd578ce46e09484780cfea556abb5e
  • Vorgänger 1cc7b9e6
  • Nachfolger 20d730ac

rose_auto_create_model.pl: --all behandelt auch auth-Tabellen

Unterschiede anzeigen:

SL/DB/MetaSetup/AuthClient.pm
4 4

  
5 5
use strict;
6 6

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

  
9 9
__PACKAGE__->meta->table('clients');
10 10
__PACKAGE__->meta->schema('auth');
11 11

  
12 12
__PACKAGE__->meta->columns(
13
  id         => { type => 'serial', not_null => 1 },
14
  name       => { type => 'text', not_null => 1 },
15 13
  dbhost     => { type => 'text', not_null => 1 },
16
  dbport     => { type => 'integer', default => 5432, not_null => 1 },
17 14
  dbname     => { type => 'text', not_null => 1 },
18
  dbuser     => { type => 'text', not_null => 1 },
19 15
  dbpasswd   => { type => 'text', not_null => 1 },
16
  dbport     => { type => 'integer', default => 5432, not_null => 1 },
17
  dbuser     => { type => 'text', not_null => 1 },
18
  id         => { type => 'serial', not_null => 1 },
20 19
  is_default => { type => 'boolean', default => 'false', not_null => 1 },
20
  name       => { type => 'text', not_null => 1 },
21 21
);
22 22

  
23 23
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
......
27 27
  [ 'name' ],
28 28
);
29 29

  
30
# __PACKAGE__->meta->initialize;
31

  
32 30
1;
33 31
;

Auch abrufbar als: Unified diff