Revision ad46cc4c
Von Bernd Bleßmann vor mehr als 2 Jahren hinzugefügt
SL/DB/FileFullText.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::FileFullText; |
|
5 |
|
|
6 |
use strict; |
|
7 |
|
|
8 |
use SL::DB::MetaSetup::FileFullText; |
|
9 |
use SL::DB::Manager::FileFullText; |
|
10 |
|
|
11 |
__PACKAGE__->meta->initialize; |
|
12 |
|
|
13 |
1; |
SL/DB/Helper/ALL.pm | ||
---|---|---|
61 | 61 |
use SL::DB::EmployeeProjectInvoices; |
62 | 62 |
use SL::DB::Exchangerate; |
63 | 63 |
use SL::DB::File; |
64 |
use SL::DB::FileFullText; |
|
64 | 65 |
use SL::DB::Finanzamt; |
65 | 66 |
use SL::DB::FollowUp; |
66 | 67 |
use SL::DB::FollowUpAccess; |
SL/DB/Helper/Mappings.pm | ||
---|---|---|
144 | 144 |
employee_project_invoices => 'EmployeeProjectInvoices', |
145 | 145 |
exchangerate => 'exchangerate', |
146 | 146 |
files => 'file', |
147 |
file_full_texts => 'file_full_text', |
|
147 | 148 |
finanzamt => 'finanzamt', |
148 | 149 |
follow_up_access => 'follow_up_access', |
149 | 150 |
follow_up_links => 'follow_up_link', |
SL/DB/Manager/FileFullText.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::FileFullText; |
|
5 |
|
|
6 |
use strict; |
|
7 |
|
|
8 |
use parent qw(SL::DB::Helper::Manager); |
|
9 |
|
|
10 |
sub object_class { 'SL::DB::FileFullText' } |
|
11 |
|
|
12 |
__PACKAGE__->make_manager_methods; |
|
13 |
|
|
14 |
1; |
SL/DB/MetaSetup/FileFullText.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::FileFullText; |
|
4 |
|
|
5 |
use strict; |
|
6 |
|
|
7 |
use parent qw(SL::DB::Object); |
|
8 |
|
|
9 |
__PACKAGE__->meta->table('file_full_texts'); |
|
10 |
|
|
11 |
__PACKAGE__->meta->columns( |
|
12 |
file_id => { type => 'integer', not_null => 1 }, |
|
13 |
full_text => { type => 'text', not_null => 1 }, |
|
14 |
id => { type => 'serial', not_null => 1 }, |
|
15 |
itime => { type => 'timestamp', default => 'now()', not_null => 1 }, |
|
16 |
mtime => { type => 'timestamp' }, |
|
17 |
); |
|
18 |
|
|
19 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]); |
|
20 |
|
|
21 |
__PACKAGE__->meta->allow_inline_column_values(1); |
|
22 |
|
|
23 |
__PACKAGE__->meta->foreign_keys( |
|
24 |
file => { |
|
25 |
class => 'SL::DB::File', |
|
26 |
key_columns => { file_id => 'id' }, |
|
27 |
}, |
|
28 |
); |
|
29 |
|
|
30 |
1; |
|
31 |
; |
sql/Pg-upgrade2/file_full_texts.sql | ||
---|---|---|
1 |
-- @tag: file_full_texts |
|
2 |
-- @description: Tabelle f. Volltext-Suche anlegen |
|
3 |
-- @depends: release_3_6_0 |
|
4 |
|
|
5 |
CREATE TABLE IF NOT EXISTS file_full_texts ( |
|
6 |
id SERIAL, |
|
7 |
file_id INTEGER NOT NULL REFERENCES files(id) ON DELETE CASCADE, |
|
8 |
full_text TEXT NOT NULL, |
|
9 |
itime TIMESTAMP NOT NULL DEFAULT now(), |
|
10 |
mtime TIMESTAMP, |
|
11 |
|
|
12 |
PRIMARY KEY (id) |
|
13 |
); |
|
14 |
|
|
15 |
CREATE TRIGGER mtime_file_full_texts BEFORE UPDATE ON file_full_texts FOR EACH ROW EXECUTE PROCEDURE set_mtime(); |
Auch abrufbar als: Unified diff
Volltext-Suche: Tabelle für Texte aus Dateien im DMS. DB und Rose