]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/perlmods/OpenILS/Application/Storage/Driver/Pg/dbi.pm
fixing circ sequence name
[working/Evergreen.git] / Open-ILS / src / perlmods / OpenILS / Application / Storage / Driver / Pg / dbi.pm
1 {
2         #---------------------------------------------------------------------
3         package action::circulation;
4         
5         action::circulation->table( 'action.circulation' );
6         action::circulation->sequence( 'money.billable_xact_id_seq' );
7
8         #---------------------------------------------------------------------
9         package action::survey;
10         
11         action::survey->table( 'action.survey' );
12         action::survey->sequence( 'action.survey_id_seq' );
13         
14         #---------------------------------------------------------------------
15         package action::survey_question;
16         
17         action::survey_question->table( 'action.survey_question' );
18         action::survey_question->sequence( 'action.survey_question_id_seq' );
19         
20         #---------------------------------------------------------------------
21         package action::survey_answer;
22         
23         action::survey_answer->table( 'action.survey_answer' );
24         action::survey_answer->sequence( 'action.survey_answer_id_seq' );
25         
26         #---------------------------------------------------------------------
27         package action::survey_response;
28         
29         action::survey_response->table( 'action.survey_response' );
30         action::survey_response->sequence( 'action.survey_response_id_seq' );
31         
32         #---------------------------------------------------------------------
33         package config::copy_status;
34         
35         config::copy_status->table( 'config.copy_status' );
36         config::copy_status->sequence( 'config.copy_status_id_seq' );
37
38         #---------------------------------------------------------------------
39         package config::rules::circ_duration;
40         
41         config::rules::circ_duration->table( 'config.rule_circ_duration' );
42         config::rules::circ_duration->sequence( 'config.rule_circ_duration_id_seq' );
43         
44         #---------------------------------------------------------------------
45         package config::rules::age_hold_protect;
46         
47         config::rules::age_hold_protect->table( 'config.rule_age_hold_protect' );
48         config::rules::age_hold_protect->sequence( 'config.rule_age_hold_protect_id_seq' );
49         
50         #---------------------------------------------------------------------
51         package config::rules::max_fine;
52         
53         config::rules::max_fine->table( 'config.rule_max_fine' );
54         config::rules::max_fine->sequence( 'config.rule_max_fine_id_seq' );
55         
56         #---------------------------------------------------------------------
57         package config::rules::recuring_fine;
58         
59         config::rules::recuring_fine->table( 'config.rule_recuring_fine' );
60         config::rules::recuring_fine->sequence( 'config.rule_recuring_fine_id_seq' );
61         
62         #---------------------------------------------------------------------
63         package config::net_access_level;
64         
65         config::net_access_level->table( 'config.net_access_level' );
66         config::net_access_level->sequence( 'config.net_access_level_id_seq' );
67         
68         #---------------------------------------------------------------------
69         package config::standing;
70         
71         config::standing->table( 'config.standing' );
72         config::standing->sequence( 'config.standing_id_seq' );
73         
74         #---------------------------------------------------------------------
75         package config::metabib_field;
76         
77         config::metabib_field->table( 'config.metabib_field' );
78         config::metabib_field->sequence( 'config.metabib_field_id_seq' );
79         
80         #---------------------------------------------------------------------
81         package config::bib_source;
82         
83         config::bib_source->table( 'config.bib_source' );
84         config::bib_source->sequence( 'config.bib_source_id_seq' );
85         
86         #---------------------------------------------------------------------
87         package config::identification_type;
88         
89         config::identification_type->table( 'config.identification_type' );
90         config::identification_type->sequence( 'config.identification_type_id_seq' );
91         
92         #---------------------------------------------------------------------
93         package asset::call_number_note;
94         
95         asset::call_number->table( 'asset.call_number_note' );
96         asset::call_number->sequence( 'asset.call_number_note_id_seq' );
97         
98         #---------------------------------------------------------------------
99         package asset::copy_note;
100         
101         asset::copy->table( 'asset.copy_note' );
102         asset::copy->sequence( 'asset.copy_note_id_seq' );
103
104         #---------------------------------------------------------------------
105         package asset::call_number;
106         
107         asset::call_number->table( 'asset.call_number' );
108         asset::call_number->sequence( 'asset.call_number_id_seq' );
109         
110         #---------------------------------------------------------------------
111         package asset::copy_location;
112         
113         asset::copy_location->table( 'asset.copy_location' );
114         asset::copy_location->sequence( 'asset.copy_location_id_seq' );
115
116         #---------------------------------------------------------------------
117         package asset::copy;
118         
119         asset::copy->table( 'asset.copy' );
120         asset::copy->sequence( 'asset.copy_id_seq' );
121
122         #---------------------------------------------------------------------
123         package asset::stat_cat;
124         
125         asset::stat_cat->table( 'asset.stat_cat' );
126         asset::stat_cat->sequence( 'asset.stat_cat_id_seq' );
127         
128         #---------------------------------------------------------------------
129         package asset::stat_cat_entry;
130         
131         asset::stat_cat_entry->table( 'asset.stat_cat_entry' );
132         asset::stat_cat_entry->sequence( 'asset.stat_cat_entry_id_seq' );
133         
134         #---------------------------------------------------------------------
135         package asset::stat_cat_entry_copy_map;
136         
137         asset::stat_cat_entry_copy_map->table( 'asset.stat_cat_entry_copy_map' );
138         asset::stat_cat_entry_copy_map->sequence( 'asset.stat_cat_entry_copy_map_id_seq' );
139         
140         #---------------------------------------------------------------------
141         package biblio::record_entry;
142         
143         biblio::record_entry->table( 'biblio.record_entry' );
144         biblio::record_entry->sequence( 'biblio.record_entry_id_seq' );
145
146         #---------------------------------------------------------------------
147         #package biblio::record_marc;
148         #
149         #biblio::record_marc->table( 'biblio.record_marc' );
150         #biblio::record_marc->sequence( 'biblio.record_marc_id_seq' );
151         #
152         #---------------------------------------------------------------------
153         package biblio::record_note;
154         
155         biblio::record_note->table( 'biblio.record_note' );
156         biblio::record_note->sequence( 'biblio.record_note_id_seq' );
157         
158         #---------------------------------------------------------------------
159         package actor::user;
160         
161         actor::user->table( 'actor.usr' );
162         actor::user->sequence( 'actor.usr_id_seq' );
163
164         #---------------------------------------------------------------------
165         package actor::user_address;
166         
167         actor::user_address->table( 'actor.usr_address' );
168         actor::user_address->sequence( 'actor.usr_address_id_seq' );
169
170         #---------------------------------------------------------------------
171         package actor::org_address;
172         
173         actor::org_address->table( 'actor.org_address' );
174         actor::org_address->sequence( 'actor.org_address_id_seq' );
175         
176         #---------------------------------------------------------------------
177         package actor::profile;
178         
179         actor::profile->table( 'actor.profile' );
180         actor::profile->sequence( 'actor.profile_id_seq' );
181         
182         #---------------------------------------------------------------------
183         package actor::org_unit_type;
184         
185         actor::org_unit_type->table( 'actor.org_unit_type' );
186         actor::org_unit_type->sequence( 'actor.org_unit_type_id_seq' );
187
188         #---------------------------------------------------------------------
189         package actor::org_unit;
190         
191         actor::org_unit->table( 'actor.org_unit' );
192         actor::org_unit->sequence( 'actor.org_unit_id_seq' );
193
194         #---------------------------------------------------------------------
195         package actor::stat_cat;
196         
197         actor::stat_cat->table( 'actor.stat_cat' );
198         actor::stat_cat->sequence( 'actor.stat_cat_id_seq' );
199         
200         #---------------------------------------------------------------------
201         package actor::stat_cat_entry;
202         
203         actor::stat_cat_entry->table( 'actor.stat_cat_entry' );
204         actor::stat_cat_entry->sequence( 'actor.stat_cat_entry_id_seq' );
205         
206         #---------------------------------------------------------------------
207         package actor::stat_cat_entry_user_map;
208         
209         actor::stat_cat_entry_user_map->table( 'actor.stat_cat_entry_copy_map' );
210         actor::stat_cat_entry_user_map->sequence( 'actor.stat_cat_entry_usr_map_id_seq' );
211         
212         #---------------------------------------------------------------------
213         package actor::card;
214         
215         actor::card->table( 'actor.card' );
216         actor::card->sequence( 'actor.card_id_seq' );
217
218         #---------------------------------------------------------------------
219
220         #-------------------------------------------------------------------------------
221         package metabib::metarecord;
222
223         metabib::metarecord->table( 'metabib.metarecord' );
224         metabib::metarecord->sequence( 'metabib.metarecord_id_seq' );
225
226         OpenILS::Application::Storage->register_method(
227                 api_name        => 'open-ils.storage.direct.metabib.metarecord.batch.create',
228                 method          => 'copy_create',
229                 api_level       => 1,
230                 'package'       => 'OpenILS::Application::Storage',
231                 cdbi            => 'metabib::metarecord',
232         );
233
234
235         #-------------------------------------------------------------------------------
236
237         #-------------------------------------------------------------------------------
238         package metabib::title_field_entry;
239
240         metabib::title_field_entry->table( 'metabib.title_field_entry' );
241         metabib::title_field_entry->sequence( 'metabib.title_field_entry_id_seq' );
242         metabib::title_field_entry->columns( 'FTS' => 'index_vector' );
243
244 #       metabib::title_field_entry->add_trigger(
245 #               before_create => \&OpenILS::Application::Storage::Driver::Pg::tsearch2_trigger
246 #       );
247 #       metabib::title_field_entry->add_trigger(
248 #               before_update => \&OpenILS::Application::Storage::Driver::Pg::tsearch2_trigger
249 #       );
250
251         OpenILS::Application::Storage->register_method(
252                 api_name        => 'open-ils.storage.direct.metabib.title_field_entry.batch.create',
253                 method          => 'copy_create',
254                 api_level       => 1,
255                 'package'       => 'OpenILS::Application::Storage',
256                 cdbi            => 'metabib::title_field_entry',
257         );
258
259         #-------------------------------------------------------------------------------
260
261         #-------------------------------------------------------------------------------
262         package metabib::author_field_entry;
263
264         metabib::author_field_entry->table( 'metabib.author_field_entry' );
265         metabib::author_field_entry->sequence( 'metabib.author_field_entry_id_seq' );
266         metabib::author_field_entry->columns( 'FTS' => 'index_vector' );
267
268         OpenILS::Application::Storage->register_method(
269                 api_name        => 'open-ils.storage.direct.metabib.author_field_entry.batch.create',
270                 method          => 'copy_create',
271                 api_level       => 1,
272                 'package'       => 'OpenILS::Application::Storage',
273                 cdbi            => 'metabib::author_field_entry',
274         );
275
276         #-------------------------------------------------------------------------------
277
278         #-------------------------------------------------------------------------------
279         package metabib::subject_field_entry;
280
281         metabib::subject_field_entry->table( 'metabib.subject_field_entry' );
282         metabib::subject_field_entry->sequence( 'metabib.subject_field_entry_id_seq' );
283         metabib::subject_field_entry->columns( 'FTS' => 'index_vector' );
284
285         OpenILS::Application::Storage->register_method(
286                 api_name        => 'open-ils.storage.direct.metabib.subject_field_entry.batch.create',
287                 method          => 'copy_create',
288                 api_level       => 1,
289                 'package'       => 'OpenILS::Application::Storage',
290                 cdbi            => 'metabib::subject_field_entry',
291         );
292
293         #-------------------------------------------------------------------------------
294
295         #-------------------------------------------------------------------------------
296         package metabib::keyword_field_entry;
297
298         metabib::keyword_field_entry->table( 'metabib.keyword_field_entry' );
299         metabib::keyword_field_entry->sequence( 'metabib.keyword_field_entry_id_seq' );
300         metabib::keyword_field_entry->columns( 'FTS' => 'index_vector' );
301
302         OpenILS::Application::Storage->register_method(
303                 api_name        => 'open-ils.storage.direct.metabib.keyword_field_entry.batch.create',
304                 method          => 'copy_create',
305                 api_level       => 1,
306                 'package'       => 'OpenILS::Application::Storage',
307                 cdbi            => 'metabib::keyword_field_entry',
308         );
309
310         #-------------------------------------------------------------------------------
311
312         #-------------------------------------------------------------------------------
313         #package metabib::title_field_entry_source_map;
314
315         #metabib::title_field_entry_source_map->table( 'metabib.title_field_entry_source_map' );
316
317         #-------------------------------------------------------------------------------
318
319         #-------------------------------------------------------------------------------
320         #package metabib::author_field_entry_source_map;
321
322         #metabib::author_field_entry_source_map->table( 'metabib.author_field_entry_source_map' );
323
324         #-------------------------------------------------------------------------------
325
326         #-------------------------------------------------------------------------------
327         #package metabib::subject_field_entry_source_map;
328
329         #metabib::subject_field_entry_source_map->table( 'metabib.subject_field_entry_source_map' );
330
331         #-------------------------------------------------------------------------------
332
333         #-------------------------------------------------------------------------------
334         #package metabib::keyword_field_entry_source_map;
335
336         #metabib::keyword_field_entry_source_map->table( 'metabib.keyword_field_entry_source_map' );
337
338         #-------------------------------------------------------------------------------
339
340         #-------------------------------------------------------------------------------
341         package metabib::metarecord_source_map;
342
343         metabib::metarecord_source_map->table( 'metabib.metarecord_source_map' );
344         OpenILS::Application::Storage->register_method(
345                 api_name        => 'open-ils.storage.direct.metabib.metarecord_source_map.batch.create',
346                 method          => 'copy_create',
347                 api_level       => 1,
348                 'package'       => 'OpenILS::Application::Storage',
349                 cdbi            => 'metabib::metarecord_source_map',
350         );
351
352
353         #-------------------------------------------------------------------------------
354         package metabib::record_descriptor;
355
356         metabib::record_descriptor->table( 'metabib.rec_descriptor' );
357         metabib::record_descriptor->sequence( 'metabib.rec_descriptor_id_seq' );
358
359         OpenILS::Application::Storage->register_method(
360                 api_name        => 'open-ils.storage.direct.metabib.record_descriptor.batch.create',
361                 method          => 'copy_create',
362                 api_level       => 1,
363                 'package'       => 'OpenILS::Application::Storage',
364                 cdbi            => 'metabib::record_descriptor',
365         );
366
367         #-------------------------------------------------------------------------------
368
369
370         #-------------------------------------------------------------------------------
371         package metabib::full_rec;
372
373         metabib::full_rec->table( 'metabib.full_rec' );
374         metabib::full_rec->sequence( 'metabib.full_rec_id_seq' );
375         metabib::full_rec->columns( 'FTS' => 'index_vector' );
376
377         OpenILS::Application::Storage->register_method(
378                 api_name        => 'open-ils.storage.direct.metabib.full_rec.batch.create',
379                 method          => 'copy_create',
380                 api_level       => 1,
381                 'package'       => 'OpenILS::Application::Storage',
382                 cdbi            => 'metabib::full_rec',
383         );
384
385
386         #-------------------------------------------------------------------------------
387 }
388
389 1;