Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ad46cc4c

Von Bernd Bleßmann vor fast 3 Jahren hinzugefügt

  • ID ad46cc4c58c14071a2922c1154dfa3daebac4417
  • Vorgänger 75f7cc1d
  • Nachfolger 7718459c

Volltext-Suche: Tabelle für Texte aus Dateien im DMS. DB und Rose

Unterschiede anzeigen:

SL/DB/FileFullText.pm
# This file has been auto-generated only because it didn't exist.
# Feel free to modify it at will; it will not be overwritten automatically.
package SL::DB::FileFullText;
use strict;
use SL::DB::MetaSetup::FileFullText;
use SL::DB::Manager::FileFullText;
__PACKAGE__->meta->initialize;
1;
SL/DB/Helper/ALL.pm
use SL::DB::EmployeeProjectInvoices;
use SL::DB::Exchangerate;
use SL::DB::File;
use SL::DB::FileFullText;
use SL::DB::Finanzamt;
use SL::DB::FollowUp;
use SL::DB::FollowUpAccess;
SL/DB/Helper/Mappings.pm
employee_project_invoices => 'EmployeeProjectInvoices',
exchangerate => 'exchangerate',
files => 'file',
file_full_texts => 'file_full_text',
finanzamt => 'finanzamt',
follow_up_access => 'follow_up_access',
follow_up_links => 'follow_up_link',
SL/DB/Manager/FileFullText.pm
# This file has been auto-generated only because it didn't exist.
# Feel free to modify it at will; it will not be overwritten automatically.
package SL::DB::Manager::FileFullText;
use strict;
use parent qw(SL::DB::Helper::Manager);
sub object_class { 'SL::DB::FileFullText' }
__PACKAGE__->make_manager_methods;
1;
SL/DB/MetaSetup/FileFullText.pm
# This file has been auto-generated. Do not modify it; it will be overwritten
# by rose_auto_create_model.pl automatically.
package SL::DB::FileFullText;
use strict;
use parent qw(SL::DB::Object);
__PACKAGE__->meta->table('file_full_texts');
__PACKAGE__->meta->columns(
file_id => { type => 'integer', not_null => 1 },
full_text => { type => 'text', not_null => 1 },
id => { type => 'serial', not_null => 1 },
itime => { type => 'timestamp', default => 'now()', not_null => 1 },
mtime => { type => 'timestamp' },
);
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
__PACKAGE__->meta->allow_inline_column_values(1);
__PACKAGE__->meta->foreign_keys(
file => {
class => 'SL::DB::File',
key_columns => { file_id => 'id' },
},
);
1;
;
sql/Pg-upgrade2/file_full_texts.sql
-- @tag: file_full_texts
-- @description: Tabelle f. Volltext-Suche anlegen
-- @depends: release_3_6_0
CREATE TABLE IF NOT EXISTS file_full_texts (
id SERIAL,
file_id INTEGER NOT NULL REFERENCES files(id) ON DELETE CASCADE,
full_text TEXT NOT NULL,
itime TIMESTAMP NOT NULL DEFAULT now(),
mtime TIMESTAMP,
PRIMARY KEY (id)
);
CREATE TRIGGER mtime_file_full_texts BEFORE UPDATE ON file_full_texts FOR EACH ROW EXECUTE PROCEDURE set_mtime();

Auch abrufbar als: Unified diff