Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2dd0ba1d

Von Bernd Bleßmann vor 4 Monaten hinzugefügt

  • ID 2dd0ba1d7bc055b743b428738874093cc0e9b95f
  • Vorgänger 123e8364
  • Nachfolger 0100bb74

file_versions: Spalte guid als Primärschlüssel

Unterschiede anzeigen:

SL/DB/MetaSetup/FileVersion.pm
13 13
  doc_path      => { type => 'text', not_null => 1 },
14 14
  file_id       => { type => 'integer', not_null => 1 },
15 15
  file_location => { type => 'text', not_null => 1 },
16
  guid          => { type => 'text' },
16
  guid          => { type => 'text', not_null => 1 },
17 17
  itime         => { type => 'timestamp', default => 'now()', not_null => 1 },
18 18
  mtime         => { type => 'timestamp' },
19 19
  version       => { type => 'integer', not_null => 1 },
20 20
);
21 21

  
22
__PACKAGE__->meta->primary_key_columns([ 'file_id', 'version' ]);
22
__PACKAGE__->meta->primary_key_columns([ 'guid' ]);
23 23

  
24 24
__PACKAGE__->meta->allow_inline_column_values(1);
25 25

  

Auch abrufbar als: Unified diff