Bugzilla – Attachment 12477 Details for
Bug 8798
Add the use of DBIx::Class
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Added base class files for all tables in koha using the DBIx::Class::Schema::Loader Added a (very basic) test file for C4::Context
Added-base-class-files-for-all-tables-in-koha-usin.patch (text/plain), 431.25 KB, created by
Elliott Davis
on 2012-09-24 15:14:25 UTC
(
hide
)
Description:
Added base class files for all tables in koha using the DBIx::Class::Schema::Loader Added a (very basic) test file for C4::Context
Filename:
MIME Type:
Creator:
Elliott Davis
Created:
2012-09-24 15:14:25 UTC
Size:
431.25 KB
patch
obsolete
>From 39ae8077ecec151f00b06026df82ae73a3765b77 Mon Sep 17 00:00:00 2001 >From: Elliott Davis <elliott@bywatersolutions.com> >Date: Sun, 2 Sep 2012 08:45:40 -0500 >Subject: [PATCH] Added base class files for all tables in koha using the DBIx::Class::Schema::Loader Added a (very basic) test file for C4::Context > >Also added dependencies in required files. >[Update]: changed dependencies fron dbic to dbix > moved generation shell script to a perl script wtih arguments in misc/devel >To Test: > >Install patch >Make sure you can still connect to Koha >you may optionally run the test script in comment 12 http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8798#c12 >If you run this file you should get a DBIx dump of the borrowers table >Done! > >http://bugs.koha-community.org/show_bug.cgi?id=8798 >--- > C4/Context.pm | 127 +++- > C4/Installer/PerlDependencies.pm | 5 + > Koha/Schema.pm | 19 + > Koha/Schema/Result/Accountline.pm | 199 ++++ > Koha/Schema/Result/Accountoffset.pm | 100 ++ > Koha/Schema/Result/ActionLogs.pm | 90 ++ > Koha/Schema/Result/Alert.pm | 68 ++ > Koha/Schema/Result/Aqbasket.pm | 185 ++++ > Koha/Schema/Result/Aqbasketgroup.pm | 128 +++ > Koha/Schema/Result/Aqbookseller.pm | 375 ++++++++ > Koha/Schema/Result/Aqbudget.pm | 219 +++++ > Koha/Schema/Result/Aqbudgetborrower.pm | 82 ++ > Koha/Schema/Result/Aqbudgetperiod.pm | 102 +++ > Koha/Schema/Result/AqbudgetsPlanning.pm | 106 +++ > Koha/Schema/Result/Aqcontract.pm | 111 +++ > Koha/Schema/Result/Aqinvoice.pm | 141 +++ > Koha/Schema/Result/Aqorder.pm | 358 ++++++++ > Koha/Schema/Result/Aqorderdelivery.pm | 70 ++ > Koha/Schema/Result/AqordersItem.pm | 60 ++ > Koha/Schema/Result/AuthHeader.pm | 107 +++ > Koha/Schema/Result/AuthSubfieldStructure.pm | 167 ++++ > Koha/Schema/Result/AuthTagStructure.pm | 118 +++ > Koha/Schema/Result/AuthType.pm | 85 ++ > Koha/Schema/Result/AuthorisedValue.pm | 84 ++ > Koha/Schema/Result/Biblio.pm | 308 +++++++ > Koha/Schema/Result/BiblioFramework.pm | 52 ++ > Koha/Schema/Result/Biblioimage.pm | 89 ++ > Koha/Schema/Result/Biblioitem.pm | 334 +++++++ > Koha/Schema/Result/Borrower.pm | 943 ++++++++++++++++++++ > Koha/Schema/Result/BorrowerAttribute.pm | 98 ++ > Koha/Schema/Result/BorrowerAttributeType.pm | 156 ++++ > Koha/Schema/Result/BorrowerFile.pm | 110 +++ > Koha/Schema/Result/BorrowerMessagePreference.pm | 153 ++++ > .../Result/BorrowerMessageTransportPreference.pm | 98 ++ > Koha/Schema/Result/Branch.pm | 377 ++++++++ > Koha/Schema/Result/BranchBorrowerCircRule.pm | 91 ++ > Koha/Schema/Result/BranchItemRule.pm | 99 ++ > Koha/Schema/Result/BranchTransferLimit.pm | 74 ++ > Koha/Schema/Result/Branchcategory.pm | 83 ++ > Koha/Schema/Result/Branchrelation.pm | 98 ++ > Koha/Schema/Result/Branchtransfer.pm | 147 +++ > Koha/Schema/Result/Browser.pm | 70 ++ > Koha/Schema/Result/Category.pm | 217 +++++ > Koha/Schema/Result/City.pm | 75 ++ > Koha/Schema/Result/ClassSortRule.pm | 76 ++ > Koha/Schema/Result/ClassSource.pm | 91 ++ > Koha/Schema/Result/Closure.pm | 79 ++ > Koha/Schema/Result/ClosureRrule.pm | 69 ++ > Koha/Schema/Result/Collection.pm | 66 ++ > Koha/Schema/Result/CollectionTracking.pm | 58 ++ > Koha/Schema/Result/CreatorBatch.pm | 155 ++++ > Koha/Schema/Result/CreatorImage.pm | 64 ++ > Koha/Schema/Result/CreatorLayout.pm | 173 ++++ > Koha/Schema/Result/CreatorTemplate.pm | 196 ++++ > Koha/Schema/Result/Currency.pm | 110 +++ > Koha/Schema/Result/DefaultBorrowerCircRule.pm | 67 ++ > Koha/Schema/Result/DefaultBranchCircRule.pm | 82 ++ > Koha/Schema/Result/DefaultBranchItemRule.pm | 75 ++ > Koha/Schema/Result/DefaultCircRule.pm | 70 ++ > Koha/Schema/Result/Deletedbiblio.pm | 126 +++ > Koha/Schema/Result/Deletedbiblioitem.pm | 296 ++++++ > Koha/Schema/Result/Deletedborrower.pm | 533 +++++++++++ > Koha/Schema/Result/Deleteditem.pm | 342 +++++++ > Koha/Schema/Result/Ethnicity.pm | 51 ++ > Koha/Schema/Result/ExportFormat.pm | 96 ++ > Koha/Schema/Result/Fieldmapping.pm | 75 ++ > Koha/Schema/Result/HoldFillTarget.pm | 137 +++ > Koha/Schema/Result/ImportAuth.pm | 89 ++ > Koha/Schema/Result/ImportBatch.pm | 225 +++++ > Koha/Schema/Result/ImportBiblio.pm | 121 +++ > Koha/Schema/Result/ImportItem.pm | 110 +++ > Koha/Schema/Result/ImportRecord.pm | 260 ++++++ > Koha/Schema/Result/ImportRecordMatches.pm | 73 ++ > Koha/Schema/Result/Issue.pm | 152 ++++ > Koha/Schema/Result/Issuingrule.pm | 194 ++++ > Koha/Schema/Result/Item.pm | 525 +++++++++++ > .../Result/ItemCirculationAlertPreference.pm | 74 ++ > Koha/Schema/Result/Itemtype.pm | 112 +++ > Koha/Schema/Result/LanguageDescription.pm | 74 ++ > Koha/Schema/Result/LanguageRfc4646ToIso639.pm | 58 ++ > Koha/Schema/Result/LanguageScriptBidi.pm | 49 + > Koha/Schema/Result/LanguageScriptMapping.pm | 49 + > Koha/Schema/Result/LanguageSubtagRegistry.pm | 73 ++ > Koha/Schema/Result/Letter.pm | 115 +++ > Koha/Schema/Result/MarcMatcher.pm | 129 +++ > Koha/Schema/Result/MarcSubfieldStructure.pm | 179 ++++ > Koha/Schema/Result/MarcTagStructure.pm | 94 ++ > Koha/Schema/Result/Matchcheck.pm | 113 +++ > Koha/Schema/Result/MatcherMatchpoint.pm | 81 ++ > Koha/Schema/Result/Matchpoint.pm | 144 +++ > Koha/Schema/Result/MatchpointComponent.pm | 132 +++ > Koha/Schema/Result/MatchpointComponentNorm.pm | 81 ++ > Koha/Schema/Result/Message.pm | 84 ++ > Koha/Schema/Result/MessageAttribute.pm | 92 ++ > Koha/Schema/Result/MessageQueue.pm | 166 ++++ > Koha/Schema/Result/MessageTransport.pm | 158 ++++ > Koha/Schema/Result/MessageTransportType.pm | 95 ++ > Koha/Schema/Result/NeedMergeAuthority.pm | 57 ++ > Koha/Schema/Result/Notify.pm | 88 ++ > Koha/Schema/Result/Nozebra.pm | 64 ++ > Koha/Schema/Result/OaiSet.pm | 106 +++ > Koha/Schema/Result/OaiSetsBiblio.pm | 82 ++ > Koha/Schema/Result/OaiSetsDescription.pm | 66 ++ > Koha/Schema/Result/OaiSetsMapping.pm | 82 ++ > Koha/Schema/Result/OldIssue.pm | 152 ++++ > Koha/Schema/Result/OldReserve.pm | 226 +++++ > Koha/Schema/Result/OpacNews.pm | 100 ++ > Koha/Schema/Result/Overduerule.pm | 123 +++ > Koha/Schema/Result/Patroncard.pm | 88 ++ > Koha/Schema/Result/Patronimage.pm | 75 ++ > Koha/Schema/Result/PendingOfflineOperation.pm | 94 ++ > Koha/Schema/Result/Permission.pm | 100 ++ > Koha/Schema/Result/Printer.pm | 59 ++ > Koha/Schema/Result/PrintersProfile.pm | 137 +++ > Koha/Schema/Result/Quote.pm | 63 ++ > Koha/Schema/Result/Rating.pm | 101 +++ > Koha/Schema/Result/RepeatableHoliday.pm | 88 ++ > Koha/Schema/Result/ReportsDictionary.pm | 86 ++ > Koha/Schema/Result/Reserve.pm | 255 ++++++ > Koha/Schema/Result/Reserveconstraint.pm | 75 ++ > Koha/Schema/Result/Review.pm | 111 +++ > Koha/Schema/Result/Roadtype.pm | 51 ++ > Koha/Schema/Result/SavedReport.pm | 63 ++ > Koha/Schema/Result/SavedSql.pm | 140 +++ > Koha/Schema/Result/SearchHistory.pm | 82 ++ > Koha/Schema/Result/Serial.pm | 136 +++ > Koha/Schema/Result/Serialitem.pm | 82 ++ > Koha/Schema/Result/ServicesThrottle.pm | 51 ++ > Koha/Schema/Result/Session.pm | 49 + > Koha/Schema/Result/SocialData.pm | 86 ++ > Koha/Schema/Result/SpecialHoliday.pm | 99 ++ > Koha/Schema/Result/Statistic.pm | 124 +++ > Koha/Schema/Result/Stopword.pm | 41 + > Koha/Schema/Result/Subscription.pm | 451 ++++++++++ > Koha/Schema/Result/Subscriptionhistory.pm | 96 ++ > Koha/Schema/Result/Subscriptionroutinglist.pm | 98 ++ > Koha/Schema/Result/Suggestion.pm | 281 ++++++ > Koha/Schema/Result/Systempreference.pm | 72 ++ > Koha/Schema/Result/Tag.pm | 51 ++ > Koha/Schema/Result/TagAll.pm | 112 +++ > Koha/Schema/Result/TagsApproval.pm | 105 +++ > Koha/Schema/Result/TagsIndex.pm | 91 ++ > Koha/Schema/Result/TmpHoldsqueue.pm | 144 +++ > Koha/Schema/Result/TransportCost.pm | 100 ++ > Koha/Schema/Result/UserPermission.pm | 102 +++ > Koha/Schema/Result/Userflag.pm | 82 ++ > Koha/Schema/Result/Virtualshelfcontent.pm | 135 +++ > Koha/Schema/Result/Virtualshelfshare.pm | 105 +++ > Koha/Schema/Result/Virtualshelve.pm | 157 ++++ > Koha/Schema/Result/Z3950server.pm | 167 ++++ > Koha/Schema/Result/Zebraqueue.pm | 94 ++ > debian/control | 1 + > install_misc/debian.packages | 1 + > misc/devel/updateDatabase.pl | 28 + > t/Context.t | 10 + > 155 files changed, 19730 insertions(+), 1 deletions(-) > create mode 100644 Koha/Schema.pm > create mode 100644 Koha/Schema/Result/Accountline.pm > create mode 100644 Koha/Schema/Result/Accountoffset.pm > create mode 100644 Koha/Schema/Result/ActionLogs.pm > create mode 100644 Koha/Schema/Result/Alert.pm > create mode 100644 Koha/Schema/Result/Aqbasket.pm > create mode 100644 Koha/Schema/Result/Aqbasketgroup.pm > create mode 100644 Koha/Schema/Result/Aqbookseller.pm > create mode 100644 Koha/Schema/Result/Aqbudget.pm > create mode 100644 Koha/Schema/Result/Aqbudgetborrower.pm > create mode 100644 Koha/Schema/Result/Aqbudgetperiod.pm > create mode 100644 Koha/Schema/Result/AqbudgetsPlanning.pm > create mode 100644 Koha/Schema/Result/Aqcontract.pm > create mode 100644 Koha/Schema/Result/Aqinvoice.pm > create mode 100644 Koha/Schema/Result/Aqorder.pm > create mode 100644 Koha/Schema/Result/Aqorderdelivery.pm > create mode 100644 Koha/Schema/Result/AqordersItem.pm > create mode 100644 Koha/Schema/Result/AuthHeader.pm > create mode 100644 Koha/Schema/Result/AuthSubfieldStructure.pm > create mode 100644 Koha/Schema/Result/AuthTagStructure.pm > create mode 100644 Koha/Schema/Result/AuthType.pm > create mode 100644 Koha/Schema/Result/AuthorisedValue.pm > create mode 100644 Koha/Schema/Result/Biblio.pm > create mode 100644 Koha/Schema/Result/BiblioFramework.pm > create mode 100644 Koha/Schema/Result/Biblioimage.pm > create mode 100644 Koha/Schema/Result/Biblioitem.pm > create mode 100644 Koha/Schema/Result/Borrower.pm > create mode 100644 Koha/Schema/Result/BorrowerAttribute.pm > create mode 100644 Koha/Schema/Result/BorrowerAttributeType.pm > create mode 100644 Koha/Schema/Result/BorrowerFile.pm > create mode 100644 Koha/Schema/Result/BorrowerMessagePreference.pm > create mode 100644 Koha/Schema/Result/BorrowerMessageTransportPreference.pm > create mode 100644 Koha/Schema/Result/Branch.pm > create mode 100644 Koha/Schema/Result/BranchBorrowerCircRule.pm > create mode 100644 Koha/Schema/Result/BranchItemRule.pm > create mode 100644 Koha/Schema/Result/BranchTransferLimit.pm > create mode 100644 Koha/Schema/Result/Branchcategory.pm > create mode 100644 Koha/Schema/Result/Branchrelation.pm > create mode 100644 Koha/Schema/Result/Branchtransfer.pm > create mode 100644 Koha/Schema/Result/Browser.pm > create mode 100644 Koha/Schema/Result/Category.pm > create mode 100644 Koha/Schema/Result/City.pm > create mode 100644 Koha/Schema/Result/ClassSortRule.pm > create mode 100644 Koha/Schema/Result/ClassSource.pm > create mode 100644 Koha/Schema/Result/Closure.pm > create mode 100644 Koha/Schema/Result/ClosureRrule.pm > create mode 100644 Koha/Schema/Result/Collection.pm > create mode 100644 Koha/Schema/Result/CollectionTracking.pm > create mode 100644 Koha/Schema/Result/CreatorBatch.pm > create mode 100644 Koha/Schema/Result/CreatorImage.pm > create mode 100644 Koha/Schema/Result/CreatorLayout.pm > create mode 100644 Koha/Schema/Result/CreatorTemplate.pm > create mode 100644 Koha/Schema/Result/Currency.pm > create mode 100644 Koha/Schema/Result/DefaultBorrowerCircRule.pm > create mode 100644 Koha/Schema/Result/DefaultBranchCircRule.pm > create mode 100644 Koha/Schema/Result/DefaultBranchItemRule.pm > create mode 100644 Koha/Schema/Result/DefaultCircRule.pm > create mode 100644 Koha/Schema/Result/Deletedbiblio.pm > create mode 100644 Koha/Schema/Result/Deletedbiblioitem.pm > create mode 100644 Koha/Schema/Result/Deletedborrower.pm > create mode 100644 Koha/Schema/Result/Deleteditem.pm > create mode 100644 Koha/Schema/Result/Ethnicity.pm > create mode 100644 Koha/Schema/Result/ExportFormat.pm > create mode 100644 Koha/Schema/Result/Fieldmapping.pm > create mode 100644 Koha/Schema/Result/HoldFillTarget.pm > create mode 100644 Koha/Schema/Result/ImportAuth.pm > create mode 100644 Koha/Schema/Result/ImportBatch.pm > create mode 100644 Koha/Schema/Result/ImportBiblio.pm > create mode 100644 Koha/Schema/Result/ImportItem.pm > create mode 100644 Koha/Schema/Result/ImportRecord.pm > create mode 100644 Koha/Schema/Result/ImportRecordMatches.pm > create mode 100644 Koha/Schema/Result/Issue.pm > create mode 100644 Koha/Schema/Result/Issuingrule.pm > create mode 100644 Koha/Schema/Result/Item.pm > create mode 100644 Koha/Schema/Result/ItemCirculationAlertPreference.pm > create mode 100644 Koha/Schema/Result/Itemtype.pm > create mode 100644 Koha/Schema/Result/LanguageDescription.pm > create mode 100644 Koha/Schema/Result/LanguageRfc4646ToIso639.pm > create mode 100644 Koha/Schema/Result/LanguageScriptBidi.pm > create mode 100644 Koha/Schema/Result/LanguageScriptMapping.pm > create mode 100644 Koha/Schema/Result/LanguageSubtagRegistry.pm > create mode 100644 Koha/Schema/Result/Letter.pm > create mode 100644 Koha/Schema/Result/MarcMatcher.pm > create mode 100644 Koha/Schema/Result/MarcSubfieldStructure.pm > create mode 100644 Koha/Schema/Result/MarcTagStructure.pm > create mode 100644 Koha/Schema/Result/Matchcheck.pm > create mode 100644 Koha/Schema/Result/MatcherMatchpoint.pm > create mode 100644 Koha/Schema/Result/Matchpoint.pm > create mode 100644 Koha/Schema/Result/MatchpointComponent.pm > create mode 100644 Koha/Schema/Result/MatchpointComponentNorm.pm > create mode 100644 Koha/Schema/Result/Message.pm > create mode 100644 Koha/Schema/Result/MessageAttribute.pm > create mode 100644 Koha/Schema/Result/MessageQueue.pm > create mode 100644 Koha/Schema/Result/MessageTransport.pm > create mode 100644 Koha/Schema/Result/MessageTransportType.pm > create mode 100644 Koha/Schema/Result/NeedMergeAuthority.pm > create mode 100644 Koha/Schema/Result/Notify.pm > create mode 100644 Koha/Schema/Result/Nozebra.pm > create mode 100644 Koha/Schema/Result/OaiSet.pm > create mode 100644 Koha/Schema/Result/OaiSetsBiblio.pm > create mode 100644 Koha/Schema/Result/OaiSetsDescription.pm > create mode 100644 Koha/Schema/Result/OaiSetsMapping.pm > create mode 100644 Koha/Schema/Result/OldIssue.pm > create mode 100644 Koha/Schema/Result/OldReserve.pm > create mode 100644 Koha/Schema/Result/OpacNews.pm > create mode 100644 Koha/Schema/Result/Overduerule.pm > create mode 100644 Koha/Schema/Result/Patroncard.pm > create mode 100644 Koha/Schema/Result/Patronimage.pm > create mode 100644 Koha/Schema/Result/PendingOfflineOperation.pm > create mode 100644 Koha/Schema/Result/Permission.pm > create mode 100644 Koha/Schema/Result/Printer.pm > create mode 100644 Koha/Schema/Result/PrintersProfile.pm > create mode 100644 Koha/Schema/Result/Quote.pm > create mode 100644 Koha/Schema/Result/Rating.pm > create mode 100644 Koha/Schema/Result/RepeatableHoliday.pm > create mode 100644 Koha/Schema/Result/ReportsDictionary.pm > create mode 100644 Koha/Schema/Result/Reserve.pm > create mode 100644 Koha/Schema/Result/Reserveconstraint.pm > create mode 100644 Koha/Schema/Result/Review.pm > create mode 100644 Koha/Schema/Result/Roadtype.pm > create mode 100644 Koha/Schema/Result/SavedReport.pm > create mode 100644 Koha/Schema/Result/SavedSql.pm > create mode 100644 Koha/Schema/Result/SearchHistory.pm > create mode 100644 Koha/Schema/Result/Serial.pm > create mode 100644 Koha/Schema/Result/Serialitem.pm > create mode 100644 Koha/Schema/Result/ServicesThrottle.pm > create mode 100644 Koha/Schema/Result/Session.pm > create mode 100644 Koha/Schema/Result/SocialData.pm > create mode 100644 Koha/Schema/Result/SpecialHoliday.pm > create mode 100644 Koha/Schema/Result/Statistic.pm > create mode 100644 Koha/Schema/Result/Stopword.pm > create mode 100644 Koha/Schema/Result/Subscription.pm > create mode 100644 Koha/Schema/Result/Subscriptionhistory.pm > create mode 100644 Koha/Schema/Result/Subscriptionroutinglist.pm > create mode 100644 Koha/Schema/Result/Suggestion.pm > create mode 100644 Koha/Schema/Result/Systempreference.pm > create mode 100644 Koha/Schema/Result/Tag.pm > create mode 100644 Koha/Schema/Result/TagAll.pm > create mode 100644 Koha/Schema/Result/TagsApproval.pm > create mode 100644 Koha/Schema/Result/TagsIndex.pm > create mode 100644 Koha/Schema/Result/TmpHoldsqueue.pm > create mode 100644 Koha/Schema/Result/TransportCost.pm > create mode 100644 Koha/Schema/Result/UserPermission.pm > create mode 100644 Koha/Schema/Result/Userflag.pm > create mode 100644 Koha/Schema/Result/Virtualshelfcontent.pm > create mode 100644 Koha/Schema/Result/Virtualshelfshare.pm > create mode 100644 Koha/Schema/Result/Virtualshelve.pm > create mode 100644 Koha/Schema/Result/Z3950server.pm > create mode 100644 Koha/Schema/Result/Zebraqueue.pm > create mode 100755 misc/devel/updateDatabase.pl > create mode 100755 t/Context.t > >diff --git a/C4/Context.pm b/C4/Context.pm >index a95c6b6..52f4824 100644 >--- a/C4/Context.pm >+++ b/C4/Context.pm >@@ -19,7 +19,7 @@ package C4::Context; > use strict; > use warnings; > use vars qw($VERSION $AUTOLOAD $context @context_stack $servers $memcached $ismemcached); >- >+$ENV{'DBIC_DONT_VALIDATE_RELS'} = 1; # FIXME once the DBIx schema has its schema adjusted we should remove this > BEGIN { > if ($ENV{'HTTP_USER_AGENT'}) { > require CGI::Carp; >@@ -99,6 +99,7 @@ BEGIN { > } > > use DBI; >+require Koha::Schema; > use ZOOM; > use XML::Simple; > use C4::Boolean; >@@ -882,6 +883,130 @@ sub restore_dbh > # return something, then this function should, too. > } > >+# _new_schema >+# Internal helper function (not a method!). This creates a new >+# database connection from the data given in the current context, and >+# returns it. >+sub _new_schema { >+ my $db_driver; >+ if ($context->config("db_scheme")){ >+ $db_driver=db_scheme2dbi($context->config("db_scheme")); >+ }else{ >+ $db_driver="mysql"; >+ } >+ >+ my $db_name = $context->config("database"); >+ my $db_host = $context->config("hostname"); >+ my $db_port = $context->config("port") || ''; >+ my $db_user = $context->config("user"); >+ my $db_passwd = $context->config("pass"); >+ my $schema= Koha::Schema->connect("DBI:$db_driver:dbname=$db_name;host=$db_host;port=$db_port", >+ $db_user, $db_passwd); >+ return $schema; >+} >+ >+=head2 schema >+ >+ $schema = C4::Context->schema; >+ >+Returns a database handle connected to the Koha database for the >+current context. If no connection has yet been made, this method >+creates one, and connects to the database. >+ >+This database handle is cached for future use: if you call >+C<C4::Context-E<gt>schema> twice, you will get the same handle both >+times. If you need a second database handle, use C<&new_schema> and >+possibly C<&set_schema>. >+ >+=cut >+ >+sub schema { >+ my $self = shift; >+ my $sth; >+ >+ if (defined($context->{"schema"}) && $context->{"schema"}->ping()) { >+ return $context->{"schema"}; >+ } >+ >+ # No database handle or it died . Create one. >+ $context->{"schema"} = &_new_schema(); >+ >+ return $context->{"schema"}; >+} >+ >+=head2 new_schema >+ >+ $schema = C4::Context->new_schema; >+ >+Creates a new connection to the Koha database for the current context, >+and returns the database handle (a C<DBI::db> object). >+ >+The handle is not saved anywhere: this method is strictly a >+convenience function; the point is that it knows which database to >+connect to so that the caller doesn't have to know. >+ >+=cut >+ >+#' >+sub new_schema { >+ my $self = shift; >+ >+ return &_new_schema(); >+} >+ >+=head2 set_schema >+ >+ $my_schema = C4::Connect->new_schema; >+ C4::Connect->set_schema($my_schema); >+ ... >+ C4::Connect->restore_schema; >+ >+C<&set_schema> and C<&restore_schema> work in a manner analogous to >+C<&set_context> and C<&restore_context>. >+ >+C<&set_schema> saves the current database handle on a stack, then sets >+the current database handle to C<$my_schema>. >+ >+C<$my_schema> is assumed to be a good database handle. >+ >+=cut >+ >+sub set_schema { >+ my $self = shift; >+ my $new_schema = shift; >+ >+ # Save the current database handle on the handle stack. >+ # We assume that $new_schema is all good: if the caller wants to >+ # screw himself by passing an invalid handle, that's fine by >+ # us. >+ push @{$context->{"schema_stack"}}, $context->{"schema"}; >+ $context->{"schema"} = $new_schema; >+} >+ >+=head2 restore_schema >+ >+ C4::Context->restore_schema; >+ >+Restores the database handle saved by an earlier call to >+C<C4::Context-E<gt>set_schema>. >+ >+=cut >+ >+sub restore_schema { >+ my $self = shift; >+ >+ if ($#{$context->{"schema_stack"}} < 0) { >+ # Stack underflow >+ die "SCHEMA stack underflow"; >+ } >+ >+ # Pop the old database handle and set it. >+ $context->{"schema"} = pop @{$context->{"schema_stack"}}; >+ >+ # FIXME - If it is determined that restore_context should >+ # return something, then this function should, too. >+} >+ > =head2 marcfromkohafield > > $dbh = C4::Context->marcfromkohafield; >diff --git a/C4/Installer/PerlDependencies.pm b/C4/Installer/PerlDependencies.pm >index 263ae40..e5d9af6 100644 >--- a/C4/Installer/PerlDependencies.pm >+++ b/C4/Installer/PerlDependencies.pm >@@ -54,6 +54,11 @@ our $PERL_DEPS = { > 'required' => '1', > 'min_ver' => '1.53' > }, >+ 'DBIx::Class::Schema::Loader' => { >+ 'usage' => 'Core', >+ 'required' => '1', >+ 'min_ver' => '0.07033' >+ }, > 'Net::Z3950::ZOOM' => { > 'usage' => 'Core', > 'required' => '1', >diff --git a/Koha/Schema.pm b/Koha/Schema.pm >new file mode 100644 >index 0000000..f1db97f >--- /dev/null >+++ b/Koha/Schema.pm >@@ -0,0 +1,19 @@ >+package Koha::Schema; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Schema'; >+ >+__PACKAGE__->load_namespaces; >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HQBaQAYvjvZj3xPakhjuPw >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Accountline.pm b/Koha/Schema/Result/Accountline.pm >new file mode 100644 >index 0000000..c8a21e2 >--- /dev/null >+++ b/Koha/Schema/Result/Accountline.pm >@@ -0,0 +1,199 @@ >+package Koha::Schema::Result::Accountline; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Accountline >+ >+=cut >+ >+__PACKAGE__->table("accountlines"); >+ >+=head1 ACCESSORS >+ >+=head2 accountlines_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 accountno >+ >+ data_type: 'smallint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 itemnumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+=head2 date >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 amount >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [28,6] >+ >+=head2 description >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 dispute >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 accounttype >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 5 >+ >+=head2 amountoutstanding >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [28,6] >+ >+=head2 lastincrement >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [28,6] >+ >+=head2 timestamp >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=head2 notify_id >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 notify_level >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 note >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 manager_id >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "accountlines_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "borrowernumber", >+ { >+ data_type => "integer", >+ default_value => 0, >+ is_foreign_key => 1, >+ is_nullable => 0, >+ }, >+ "accountno", >+ { data_type => "smallint", default_value => 0, is_nullable => 0 }, >+ "itemnumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, >+ "date", >+ { data_type => "date", is_nullable => 1 }, >+ "amount", >+ { data_type => "decimal", is_nullable => 1, size => [28, 6] }, >+ "description", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "dispute", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "accounttype", >+ { data_type => "varchar", is_nullable => 1, size => 5 }, >+ "amountoutstanding", >+ { data_type => "decimal", is_nullable => 1, size => [28, 6] }, >+ "lastincrement", >+ { data_type => "decimal", is_nullable => 1, size => [28, 6] }, >+ "timestamp", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+ "notify_id", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "notify_level", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "note", >+ { data_type => "text", is_nullable => 1 }, >+ "manager_id", >+ { data_type => "integer", is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("accountlines_id"); >+ >+=head1 RELATIONS >+ >+=head2 borrowernumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "borrowernumber", >+ "Koha::Schema::Result::Borrower", >+ { borrowernumber => "borrowernumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 itemnumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Item> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "itemnumber", >+ "Koha::Schema::Result::Item", >+ { itemnumber => "itemnumber" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+AbxKjLUR7hQsP2dpsyAPw >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Accountoffset.pm b/Koha/Schema/Result/Accountoffset.pm >new file mode 100644 >index 0000000..058893b >--- /dev/null >+++ b/Koha/Schema/Result/Accountoffset.pm >@@ -0,0 +1,100 @@ >+package Koha::Schema::Result::Accountoffset; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Accountoffset >+ >+=cut >+ >+__PACKAGE__->table("accountoffsets"); >+ >+=head1 ACCESSORS >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 accountno >+ >+ data_type: 'smallint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 offsetaccount >+ >+ data_type: 'smallint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 offsetamount >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [28,6] >+ >+=head2 timestamp >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "borrowernumber", >+ { >+ data_type => "integer", >+ default_value => 0, >+ is_foreign_key => 1, >+ is_nullable => 0, >+ }, >+ "accountno", >+ { data_type => "smallint", default_value => 0, is_nullable => 0 }, >+ "offsetaccount", >+ { data_type => "smallint", default_value => 0, is_nullable => 0 }, >+ "offsetamount", >+ { data_type => "decimal", is_nullable => 1, size => [28, 6] }, >+ "timestamp", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+); >+ >+=head1 RELATIONS >+ >+=head2 borrowernumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "borrowernumber", >+ "Koha::Schema::Result::Borrower", >+ { borrowernumber => "borrowernumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EgbEZx495kZ40/HqRcPXfA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/ActionLogs.pm b/Koha/Schema/Result/ActionLogs.pm >new file mode 100644 >index 0000000..13b8cc2 >--- /dev/null >+++ b/Koha/Schema/Result/ActionLogs.pm >@@ -0,0 +1,90 @@ >+package Koha::Schema::Result::ActionLogs; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::ActionLogs >+ >+=cut >+ >+__PACKAGE__->table("action_logs"); >+ >+=head1 ACCESSORS >+ >+=head2 action_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 timestamp >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=head2 user >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 module >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 action >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 object >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 info >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "action_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "timestamp", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+ "user", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "module", >+ { data_type => "text", is_nullable => 1 }, >+ "action", >+ { data_type => "text", is_nullable => 1 }, >+ "object", >+ { data_type => "integer", is_nullable => 1 }, >+ "info", >+ { data_type => "text", is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("action_id"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9VN0SGNBYM/thO7QzQB4Bg >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Alert.pm b/Koha/Schema/Result/Alert.pm >new file mode 100644 >index 0000000..8fe9469 >--- /dev/null >+++ b/Koha/Schema/Result/Alert.pm >@@ -0,0 +1,68 @@ >+package Koha::Schema::Result::Alert; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Alert >+ >+=cut >+ >+__PACKAGE__->table("alert"); >+ >+=head1 ACCESSORS >+ >+=head2 alertid >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 type >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=head2 externalid >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 20 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "alertid", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "borrowernumber", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "type", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+ "externalid", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 20 }, >+); >+__PACKAGE__->set_primary_key("alertid"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MH/2E3A0Zh8EpLye/qojPw >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Aqbasket.pm b/Koha/Schema/Result/Aqbasket.pm >new file mode 100644 >index 0000000..74b2e29 >--- /dev/null >+++ b/Koha/Schema/Result/Aqbasket.pm >@@ -0,0 +1,185 @@ >+package Koha::Schema::Result::Aqbasket; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Aqbasket >+ >+=cut >+ >+__PACKAGE__->table("aqbasket"); >+ >+=head1 ACCESSORS >+ >+=head2 basketno >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 basketname >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 50 >+ >+=head2 note >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 booksellernote >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 contractnumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+=head2 creationdate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 closedate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 booksellerid >+ >+ data_type: 'integer' >+ default_value: 1 >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 authorisedby >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 booksellerinvoicenumber >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 basketgroupid >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "basketno", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "basketname", >+ { data_type => "varchar", is_nullable => 1, size => 50 }, >+ "note", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "booksellernote", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "contractnumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, >+ "creationdate", >+ { data_type => "date", is_nullable => 1 }, >+ "closedate", >+ { data_type => "date", is_nullable => 1 }, >+ "booksellerid", >+ { >+ data_type => "integer", >+ default_value => 1, >+ is_foreign_key => 1, >+ is_nullable => 0, >+ }, >+ "authorisedby", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "booksellerinvoicenumber", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "basketgroupid", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("basketno"); >+ >+=head1 RELATIONS >+ >+=head2 booksellerid >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Aqbookseller> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "booksellerid", >+ "Koha::Schema::Result::Aqbookseller", >+ { id => "booksellerid" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 contractnumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Aqcontract> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "contractnumber", >+ "Koha::Schema::Result::Aqcontract", >+ { contractnumber => "contractnumber" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 basketgroupid >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Aqbasketgroup> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "basketgroupid", >+ "Koha::Schema::Result::Aqbasketgroup", >+ { id => "basketgroupid" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 aqorders >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Aqorder> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "aqorders", >+ "Koha::Schema::Result::Aqorder", >+ { "foreign.basketno" => "self.basketno" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eRG3p93qKZhp3rNPwG60Ig >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Aqbasketgroup.pm b/Koha/Schema/Result/Aqbasketgroup.pm >new file mode 100644 >index 0000000..76c8d6f >--- /dev/null >+++ b/Koha/Schema/Result/Aqbasketgroup.pm >@@ -0,0 +1,128 @@ >+package Koha::Schema::Result::Aqbasketgroup; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Aqbasketgroup >+ >+=cut >+ >+__PACKAGE__->table("aqbasketgroups"); >+ >+=head1 ACCESSORS >+ >+=head2 id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 name >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 50 >+ >+=head2 closed >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 booksellerid >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 billingplace >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 deliveryplace >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 freedeliveryplace >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 deliverycomment >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "name", >+ { data_type => "varchar", is_nullable => 1, size => 50 }, >+ "closed", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "booksellerid", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "billingplace", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "deliveryplace", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "freedeliveryplace", >+ { data_type => "text", is_nullable => 1 }, >+ "deliverycomment", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+); >+__PACKAGE__->set_primary_key("id"); >+ >+=head1 RELATIONS >+ >+=head2 aqbaskets >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Aqbasket> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "aqbaskets", >+ "Koha::Schema::Result::Aqbasket", >+ { "foreign.basketgroupid" => "self.id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 booksellerid >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Aqbookseller> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "booksellerid", >+ "Koha::Schema::Result::Aqbookseller", >+ { id => "booksellerid" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sxuJyGpPeqNxjNAnAAe69A >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Aqbookseller.pm b/Koha/Schema/Result/Aqbookseller.pm >new file mode 100644 >index 0000000..af2d97d >--- /dev/null >+++ b/Koha/Schema/Result/Aqbookseller.pm >@@ -0,0 +1,375 @@ >+package Koha::Schema::Result::Aqbookseller; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Aqbookseller >+ >+=cut >+ >+__PACKAGE__->table("aqbooksellers"); >+ >+=head1 ACCESSORS >+ >+=head2 id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 name >+ >+ data_type: 'mediumtext' >+ is_nullable: 0 >+ >+=head2 address1 >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 address2 >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 address3 >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 address4 >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 phone >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 30 >+ >+=head2 accountnumber >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 othersupplier >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 currency >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 3 >+ >+=head2 booksellerfax >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 notes >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 bookselleremail >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 booksellerurl >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 contact >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 100 >+ >+=head2 postal >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 url >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 contpos >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 100 >+ >+=head2 contphone >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 100 >+ >+=head2 contfax >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 100 >+ >+=head2 contaltphone >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 100 >+ >+=head2 contemail >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 100 >+ >+=head2 contnotes >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 active >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 listprice >+ >+ data_type: 'varchar' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ size: 10 >+ >+=head2 invoiceprice >+ >+ data_type: 'varchar' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ size: 10 >+ >+=head2 gstreg >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 listincgst >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 invoiceincgst >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 gstrate >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [6,4] >+ >+=head2 discount >+ >+ data_type: 'float' >+ is_nullable: 1 >+ size: [6,4] >+ >+=head2 fax >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 50 >+ >+=head2 deliverytime >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "name", >+ { data_type => "mediumtext", is_nullable => 0 }, >+ "address1", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "address2", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "address3", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "address4", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "phone", >+ { data_type => "varchar", is_nullable => 1, size => 30 }, >+ "accountnumber", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "othersupplier", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "currency", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 }, >+ "booksellerfax", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "notes", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "bookselleremail", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "booksellerurl", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "contact", >+ { data_type => "varchar", is_nullable => 1, size => 100 }, >+ "postal", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "url", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "contpos", >+ { data_type => "varchar", is_nullable => 1, size => 100 }, >+ "contphone", >+ { data_type => "varchar", is_nullable => 1, size => 100 }, >+ "contfax", >+ { data_type => "varchar", is_nullable => 1, size => 100 }, >+ "contaltphone", >+ { data_type => "varchar", is_nullable => 1, size => 100 }, >+ "contemail", >+ { data_type => "varchar", is_nullable => 1, size => 100 }, >+ "contnotes", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "active", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "listprice", >+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, >+ "invoiceprice", >+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, >+ "gstreg", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "listincgst", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "invoiceincgst", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "gstrate", >+ { data_type => "decimal", is_nullable => 1, size => [6, 4] }, >+ "discount", >+ { data_type => "float", is_nullable => 1, size => [6, 4] }, >+ "fax", >+ { data_type => "varchar", is_nullable => 1, size => 50 }, >+ "deliverytime", >+ { data_type => "integer", is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("id"); >+ >+=head1 RELATIONS >+ >+=head2 aqbaskets >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Aqbasket> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "aqbaskets", >+ "Koha::Schema::Result::Aqbasket", >+ { "foreign.booksellerid" => "self.id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 aqbasketgroups >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Aqbasketgroup> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "aqbasketgroups", >+ "Koha::Schema::Result::Aqbasketgroup", >+ { "foreign.booksellerid" => "self.id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 listprice >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Currency> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "listprice", >+ "Koha::Schema::Result::Currency", >+ { currency => "listprice" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 invoiceprice >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Currency> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "invoiceprice", >+ "Koha::Schema::Result::Currency", >+ { currency => "invoiceprice" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 aqcontracts >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Aqcontract> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "aqcontracts", >+ "Koha::Schema::Result::Aqcontract", >+ { "foreign.booksellerid" => "self.id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 aqinvoices >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Aqinvoice> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "aqinvoices", >+ "Koha::Schema::Result::Aqinvoice", >+ { "foreign.booksellerid" => "self.id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Rie+pN0FWfYl8iqGV+svZQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Aqbudget.pm b/Koha/Schema/Result/Aqbudget.pm >new file mode 100644 >index 0000000..fb42c6f >--- /dev/null >+++ b/Koha/Schema/Result/Aqbudget.pm >@@ -0,0 +1,219 @@ >+package Koha::Schema::Result::Aqbudget; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Aqbudget >+ >+=cut >+ >+__PACKAGE__->table("aqbudgets"); >+ >+=head1 ACCESSORS >+ >+=head2 budget_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 budget_parent_id >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 budget_code >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 30 >+ >+=head2 budget_name >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 80 >+ >+=head2 budget_branchcode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 budget_amount >+ >+ data_type: 'decimal' >+ default_value: 0.000000 >+ is_nullable: 1 >+ size: [28,6] >+ >+=head2 budget_encumb >+ >+ data_type: 'decimal' >+ default_value: 0.000000 >+ is_nullable: 1 >+ size: [28,6] >+ >+=head2 budget_expend >+ >+ data_type: 'decimal' >+ default_value: 0.000000 >+ is_nullable: 1 >+ size: [28,6] >+ >+=head2 budget_notes >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 timestamp >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=head2 budget_period_id >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 sort1_authcat >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 80 >+ >+=head2 sort2_authcat >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 80 >+ >+=head2 budget_owner_id >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 budget_permission >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "budget_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "budget_parent_id", >+ { data_type => "integer", is_nullable => 1 }, >+ "budget_code", >+ { data_type => "varchar", is_nullable => 1, size => 30 }, >+ "budget_name", >+ { data_type => "varchar", is_nullable => 1, size => 80 }, >+ "budget_branchcode", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "budget_amount", >+ { >+ data_type => "decimal", >+ default_value => "0.000000", >+ is_nullable => 1, >+ size => [28, 6], >+ }, >+ "budget_encumb", >+ { >+ data_type => "decimal", >+ default_value => "0.000000", >+ is_nullable => 1, >+ size => [28, 6], >+ }, >+ "budget_expend", >+ { >+ data_type => "decimal", >+ default_value => "0.000000", >+ is_nullable => 1, >+ size => [28, 6], >+ }, >+ "budget_notes", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "timestamp", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+ "budget_period_id", >+ { data_type => "integer", is_nullable => 1 }, >+ "sort1_authcat", >+ { data_type => "varchar", is_nullable => 1, size => 80 }, >+ "sort2_authcat", >+ { data_type => "varchar", is_nullable => 1, size => 80 }, >+ "budget_owner_id", >+ { data_type => "integer", is_nullable => 1 }, >+ "budget_permission", >+ { data_type => "integer", default_value => 0, is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("budget_id"); >+ >+=head1 RELATIONS >+ >+=head2 aqbudgetborrowers >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Aqbudgetborrower> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "aqbudgetborrowers", >+ "Koha::Schema::Result::Aqbudgetborrower", >+ { "foreign.budget_id" => "self.budget_id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 aqbudgets_plannings >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::AqbudgetsPlanning> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "aqbudgets_plannings", >+ "Koha::Schema::Result::AqbudgetsPlanning", >+ { "foreign.budget_id" => "self.budget_id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 aqinvoices >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Aqinvoice> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "aqinvoices", >+ "Koha::Schema::Result::Aqinvoice", >+ { "foreign.shipmentcost_budgetid" => "self.budget_id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qMHMlKGUX5xPXM2fmjnBgQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Aqbudgetborrower.pm b/Koha/Schema/Result/Aqbudgetborrower.pm >new file mode 100644 >index 0000000..f11f9a7 >--- /dev/null >+++ b/Koha/Schema/Result/Aqbudgetborrower.pm >@@ -0,0 +1,82 @@ >+package Koha::Schema::Result::Aqbudgetborrower; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Aqbudgetborrower >+ >+=cut >+ >+__PACKAGE__->table("aqbudgetborrowers"); >+ >+=head1 ACCESSORS >+ >+=head2 budget_id >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "budget_id", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "borrowernumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("budget_id", "borrowernumber"); >+ >+=head1 RELATIONS >+ >+=head2 budget >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Aqbudget> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "budget", >+ "Koha::Schema::Result::Aqbudget", >+ { budget_id => "budget_id" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 borrowernumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "borrowernumber", >+ "Koha::Schema::Result::Borrower", >+ { borrowernumber => "borrowernumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yyTHiYgSk9l/r976XwuYog >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Aqbudgetperiod.pm b/Koha/Schema/Result/Aqbudgetperiod.pm >new file mode 100644 >index 0000000..e281c6d >--- /dev/null >+++ b/Koha/Schema/Result/Aqbudgetperiod.pm >@@ -0,0 +1,102 @@ >+package Koha::Schema::Result::Aqbudgetperiod; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Aqbudgetperiod >+ >+=cut >+ >+__PACKAGE__->table("aqbudgetperiods"); >+ >+=head1 ACCESSORS >+ >+=head2 budget_period_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 budget_period_startdate >+ >+ data_type: 'date' >+ is_nullable: 0 >+ >+=head2 budget_period_enddate >+ >+ data_type: 'date' >+ is_nullable: 0 >+ >+=head2 budget_period_active >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 budget_period_description >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 budget_period_total >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [28,6] >+ >+=head2 budget_period_locked >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 sort1_authcat >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 sort2_authcat >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "budget_period_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "budget_period_startdate", >+ { data_type => "date", is_nullable => 0 }, >+ "budget_period_enddate", >+ { data_type => "date", is_nullable => 0 }, >+ "budget_period_active", >+ { data_type => "tinyint", default_value => 0, is_nullable => 1 }, >+ "budget_period_description", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "budget_period_total", >+ { data_type => "decimal", is_nullable => 1, size => [28, 6] }, >+ "budget_period_locked", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "sort1_authcat", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "sort2_authcat", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+); >+__PACKAGE__->set_primary_key("budget_period_id"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MKnUsWU+v4zWADuLVahIuQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/AqbudgetsPlanning.pm b/Koha/Schema/Result/AqbudgetsPlanning.pm >new file mode 100644 >index 0000000..3685d8c >--- /dev/null >+++ b/Koha/Schema/Result/AqbudgetsPlanning.pm >@@ -0,0 +1,106 @@ >+package Koha::Schema::Result::AqbudgetsPlanning; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::AqbudgetsPlanning >+ >+=cut >+ >+__PACKAGE__->table("aqbudgets_planning"); >+ >+=head1 ACCESSORS >+ >+=head2 plan_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 budget_id >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 budget_period_id >+ >+ data_type: 'integer' >+ is_nullable: 0 >+ >+=head2 estimated_amount >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [28,6] >+ >+=head2 authcat >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 30 >+ >+=head2 authvalue >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 30 >+ >+=head2 display >+ >+ data_type: 'tinyint' >+ default_value: 1 >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "plan_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "budget_id", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "budget_period_id", >+ { data_type => "integer", is_nullable => 0 }, >+ "estimated_amount", >+ { data_type => "decimal", is_nullable => 1, size => [28, 6] }, >+ "authcat", >+ { data_type => "varchar", is_nullable => 0, size => 30 }, >+ "authvalue", >+ { data_type => "varchar", is_nullable => 0, size => 30 }, >+ "display", >+ { data_type => "tinyint", default_value => 1, is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("plan_id"); >+ >+=head1 RELATIONS >+ >+=head2 budget >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Aqbudget> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "budget", >+ "Koha::Schema::Result::Aqbudget", >+ { budget_id => "budget_id" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0yahPlMJfcJkYkG94ANfQA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Aqcontract.pm b/Koha/Schema/Result/Aqcontract.pm >new file mode 100644 >index 0000000..10218a7 >--- /dev/null >+++ b/Koha/Schema/Result/Aqcontract.pm >@@ -0,0 +1,111 @@ >+package Koha::Schema::Result::Aqcontract; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Aqcontract >+ >+=cut >+ >+__PACKAGE__->table("aqcontract"); >+ >+=head1 ACCESSORS >+ >+=head2 contractnumber >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 contractstartdate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 contractenddate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 contractname >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 50 >+ >+=head2 contractdescription >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 booksellerid >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "contractnumber", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "contractstartdate", >+ { data_type => "date", is_nullable => 1 }, >+ "contractenddate", >+ { data_type => "date", is_nullable => 1 }, >+ "contractname", >+ { data_type => "varchar", is_nullable => 1, size => 50 }, >+ "contractdescription", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "booksellerid", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("contractnumber"); >+ >+=head1 RELATIONS >+ >+=head2 aqbaskets >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Aqbasket> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "aqbaskets", >+ "Koha::Schema::Result::Aqbasket", >+ { "foreign.contractnumber" => "self.contractnumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 booksellerid >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Aqbookseller> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "booksellerid", >+ "Koha::Schema::Result::Aqbookseller", >+ { id => "booksellerid" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ycOR9kVN0T7MmqtyS5ymww >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Aqinvoice.pm b/Koha/Schema/Result/Aqinvoice.pm >new file mode 100644 >index 0000000..9fc9b36 >--- /dev/null >+++ b/Koha/Schema/Result/Aqinvoice.pm >@@ -0,0 +1,141 @@ >+package Koha::Schema::Result::Aqinvoice; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Aqinvoice >+ >+=cut >+ >+__PACKAGE__->table("aqinvoices"); >+ >+=head1 ACCESSORS >+ >+=head2 invoiceid >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 invoicenumber >+ >+ data_type: 'mediumtext' >+ is_nullable: 0 >+ >+=head2 booksellerid >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 shipmentdate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 billingdate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 closedate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 shipmentcost >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [28,6] >+ >+=head2 shipmentcost_budgetid >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "invoiceid", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "invoicenumber", >+ { data_type => "mediumtext", is_nullable => 0 }, >+ "booksellerid", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "shipmentdate", >+ { data_type => "date", is_nullable => 1 }, >+ "billingdate", >+ { data_type => "date", is_nullable => 1 }, >+ "closedate", >+ { data_type => "date", is_nullable => 1 }, >+ "shipmentcost", >+ { data_type => "decimal", is_nullable => 1, size => [28, 6] }, >+ "shipmentcost_budgetid", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("invoiceid"); >+ >+=head1 RELATIONS >+ >+=head2 booksellerid >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Aqbookseller> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "booksellerid", >+ "Koha::Schema::Result::Aqbookseller", >+ { id => "booksellerid" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 shipmentcost_budgetid >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Aqbudget> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "shipmentcost_budgetid", >+ "Koha::Schema::Result::Aqbudget", >+ { budget_id => "shipmentcost_budgetid" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 aqorders >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Aqorder> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "aqorders", >+ "Koha::Schema::Result::Aqorder", >+ { "foreign.invoiceid" => "self.invoiceid" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:O5JnKjtyloB4VdJzZMpQng >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Aqorder.pm b/Koha/Schema/Result/Aqorder.pm >new file mode 100644 >index 0000000..3a48c55 >--- /dev/null >+++ b/Koha/Schema/Result/Aqorder.pm >@@ -0,0 +1,358 @@ >+package Koha::Schema::Result::Aqorder; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Aqorder >+ >+=cut >+ >+__PACKAGE__->table("aqorders"); >+ >+=head1 ACCESSORS >+ >+=head2 ordernumber >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 biblionumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+=head2 entrydate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 quantity >+ >+ data_type: 'smallint' >+ is_nullable: 1 >+ >+=head2 currency >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 3 >+ >+=head2 listprice >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [28,6] >+ >+=head2 totalamount >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [28,6] >+ >+=head2 datereceived >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 invoiceid >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+=head2 freight >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [28,6] >+ >+=head2 unitprice >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [28,6] >+ >+=head2 quantityreceived >+ >+ data_type: 'smallint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 cancelledby >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 datecancellationprinted >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 notes >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 supplierreference >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 purchaseordernumber >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 subscription >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 serialid >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 30 >+ >+=head2 basketno >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+=head2 biblioitemnumber >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 timestamp >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=head2 rrp >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [13,2] >+ >+=head2 ecost >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [13,2] >+ >+=head2 gst >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [13,2] >+ >+=head2 budget_id >+ >+ data_type: 'integer' >+ is_nullable: 0 >+ >+=head2 budgetgroup_id >+ >+ data_type: 'integer' >+ is_nullable: 0 >+ >+=head2 budgetdate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 sort1 >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 80 >+ >+=head2 sort2 >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 80 >+ >+=head2 sort1_authcat >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 sort2_authcat >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 uncertainprice >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 claims_count >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 claimed_date >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 parent_ordernumber >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "ordernumber", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "biblionumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, >+ "entrydate", >+ { data_type => "date", is_nullable => 1 }, >+ "quantity", >+ { data_type => "smallint", is_nullable => 1 }, >+ "currency", >+ { data_type => "varchar", is_nullable => 1, size => 3 }, >+ "listprice", >+ { data_type => "decimal", is_nullable => 1, size => [28, 6] }, >+ "totalamount", >+ { data_type => "decimal", is_nullable => 1, size => [28, 6] }, >+ "datereceived", >+ { data_type => "date", is_nullable => 1 }, >+ "invoiceid", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, >+ "freight", >+ { data_type => "decimal", is_nullable => 1, size => [28, 6] }, >+ "unitprice", >+ { data_type => "decimal", is_nullable => 1, size => [28, 6] }, >+ "quantityreceived", >+ { data_type => "smallint", default_value => 0, is_nullable => 0 }, >+ "cancelledby", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "datecancellationprinted", >+ { data_type => "date", is_nullable => 1 }, >+ "notes", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "supplierreference", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "purchaseordernumber", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "subscription", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "serialid", >+ { data_type => "varchar", is_nullable => 1, size => 30 }, >+ "basketno", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, >+ "biblioitemnumber", >+ { data_type => "integer", is_nullable => 1 }, >+ "timestamp", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+ "rrp", >+ { data_type => "decimal", is_nullable => 1, size => [13, 2] }, >+ "ecost", >+ { data_type => "decimal", is_nullable => 1, size => [13, 2] }, >+ "gst", >+ { data_type => "decimal", is_nullable => 1, size => [13, 2] }, >+ "budget_id", >+ { data_type => "integer", is_nullable => 0 }, >+ "budgetgroup_id", >+ { data_type => "integer", is_nullable => 0 }, >+ "budgetdate", >+ { data_type => "date", is_nullable => 1 }, >+ "sort1", >+ { data_type => "varchar", is_nullable => 1, size => 80 }, >+ "sort2", >+ { data_type => "varchar", is_nullable => 1, size => 80 }, >+ "sort1_authcat", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "sort2_authcat", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "uncertainprice", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "claims_count", >+ { data_type => "integer", default_value => 0, is_nullable => 1 }, >+ "claimed_date", >+ { data_type => "date", is_nullable => 1 }, >+ "parent_ordernumber", >+ { data_type => "integer", is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("ordernumber"); >+ >+=head1 RELATIONS >+ >+=head2 basketno >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Aqbasket> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "basketno", >+ "Koha::Schema::Result::Aqbasket", >+ { basketno => "basketno" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 biblionumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Biblio> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "biblionumber", >+ "Koha::Schema::Result::Biblio", >+ { biblionumber => "biblionumber" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 invoiceid >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Aqinvoice> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "invoiceid", >+ "Koha::Schema::Result::Aqinvoice", >+ { invoiceid => "invoiceid" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:McWqeFHBMTDvKV7pUEqJ3w >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Aqorderdelivery.pm b/Koha/Schema/Result/Aqorderdelivery.pm >new file mode 100644 >index 0000000..fa297cb >--- /dev/null >+++ b/Koha/Schema/Result/Aqorderdelivery.pm >@@ -0,0 +1,70 @@ >+package Koha::Schema::Result::Aqorderdelivery; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Aqorderdelivery >+ >+=cut >+ >+__PACKAGE__->table("aqorderdelivery"); >+ >+=head1 ACCESSORS >+ >+=head2 ordernumber >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 deliverynumber >+ >+ data_type: 'smallint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 deliverydate >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 18 >+ >+=head2 qtydelivered >+ >+ data_type: 'smallint' >+ is_nullable: 1 >+ >+=head2 deliverycomments >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "ordernumber", >+ { data_type => "date", is_nullable => 1 }, >+ "deliverynumber", >+ { data_type => "smallint", default_value => 0, is_nullable => 0 }, >+ "deliverydate", >+ { data_type => "varchar", is_nullable => 1, size => 18 }, >+ "qtydelivered", >+ { data_type => "smallint", is_nullable => 1 }, >+ "deliverycomments", >+ { data_type => "mediumtext", is_nullable => 1 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LOGL7qHtUGwgWbKJ1HguXA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/AqordersItem.pm b/Koha/Schema/Result/AqordersItem.pm >new file mode 100644 >index 0000000..50cc3d3 >--- /dev/null >+++ b/Koha/Schema/Result/AqordersItem.pm >@@ -0,0 +1,60 @@ >+package Koha::Schema::Result::AqordersItem; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::AqordersItem >+ >+=cut >+ >+__PACKAGE__->table("aqorders_items"); >+ >+=head1 ACCESSORS >+ >+=head2 ordernumber >+ >+ data_type: 'integer' >+ is_nullable: 0 >+ >+=head2 itemnumber >+ >+ data_type: 'integer' >+ is_nullable: 0 >+ >+=head2 timestamp >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "ordernumber", >+ { data_type => "integer", is_nullable => 0 }, >+ "itemnumber", >+ { data_type => "integer", is_nullable => 0 }, >+ "timestamp", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+); >+__PACKAGE__->set_primary_key("itemnumber"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OlihytSmp6fCmG/hAT7FEg >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/AuthHeader.pm b/Koha/Schema/Result/AuthHeader.pm >new file mode 100644 >index 0000000..5efd30f >--- /dev/null >+++ b/Koha/Schema/Result/AuthHeader.pm >@@ -0,0 +1,107 @@ >+package Koha::Schema::Result::AuthHeader; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::AuthHeader >+ >+=cut >+ >+__PACKAGE__->table("auth_header"); >+ >+=head1 ACCESSORS >+ >+=head2 authid >+ >+ data_type: 'bigint' >+ extra: {unsigned => 1} >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 authtypecode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=head2 datecreated >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 datemodified >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 origincode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 20 >+ >+=head2 authtrees >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 marc >+ >+ data_type: 'blob' >+ is_nullable: 1 >+ >+=head2 linkid >+ >+ data_type: 'bigint' >+ is_nullable: 1 >+ >+=head2 marcxml >+ >+ data_type: 'longtext' >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "authid", >+ { >+ data_type => "bigint", >+ extra => { unsigned => 1 }, >+ is_auto_increment => 1, >+ is_nullable => 0, >+ }, >+ "authtypecode", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+ "datecreated", >+ { data_type => "date", is_nullable => 1 }, >+ "datemodified", >+ { data_type => "date", is_nullable => 1 }, >+ "origincode", >+ { data_type => "varchar", is_nullable => 1, size => 20 }, >+ "authtrees", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "marc", >+ { data_type => "blob", is_nullable => 1 }, >+ "linkid", >+ { data_type => "bigint", is_nullable => 1 }, >+ "marcxml", >+ { data_type => "longtext", is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("authid"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NVcyurExTIYMqdmRcU0hSA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/AuthSubfieldStructure.pm b/Koha/Schema/Result/AuthSubfieldStructure.pm >new file mode 100644 >index 0000000..fcb424a >--- /dev/null >+++ b/Koha/Schema/Result/AuthSubfieldStructure.pm >@@ -0,0 +1,167 @@ >+package Koha::Schema::Result::AuthSubfieldStructure; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::AuthSubfieldStructure >+ >+=cut >+ >+__PACKAGE__->table("auth_subfield_structure"); >+ >+=head1 ACCESSORS >+ >+=head2 authtypecode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=head2 tagfield >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 3 >+ >+=head2 tagsubfield >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 1 >+ >+=head2 liblibrarian >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 255 >+ >+=head2 libopac >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 255 >+ >+=head2 repeatable >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 mandatory >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 tab >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 authorised_value >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 value_builder >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 80 >+ >+=head2 seealso >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 isurl >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 hidden >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 linkid >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 kohafield >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 1 >+ size: 45 >+ >+=head2 frameworkcode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "authtypecode", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+ "tagfield", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 }, >+ "tagsubfield", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 1 }, >+ "liblibrarian", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, >+ "libopac", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, >+ "repeatable", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "mandatory", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "tab", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "authorised_value", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "value_builder", >+ { data_type => "varchar", is_nullable => 1, size => 80 }, >+ "seealso", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "isurl", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "hidden", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "linkid", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "kohafield", >+ { data_type => "varchar", default_value => "", is_nullable => 1, size => 45 }, >+ "frameworkcode", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+); >+__PACKAGE__->set_primary_key("authtypecode", "tagfield", "tagsubfield"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8Au8FV34qkqLZqlpt3mXPA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/AuthTagStructure.pm b/Koha/Schema/Result/AuthTagStructure.pm >new file mode 100644 >index 0000000..01f0578 >--- /dev/null >+++ b/Koha/Schema/Result/AuthTagStructure.pm >@@ -0,0 +1,118 @@ >+package Koha::Schema::Result::AuthTagStructure; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::AuthTagStructure >+ >+=cut >+ >+__PACKAGE__->table("auth_tag_structure"); >+ >+=head1 ACCESSORS >+ >+=head2 authtypecode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 10 >+ >+=head2 tagfield >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 3 >+ >+=head2 liblibrarian >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 255 >+ >+=head2 libopac >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 255 >+ >+=head2 repeatable >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 mandatory >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 authorised_value >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "authtypecode", >+ { >+ data_type => "varchar", >+ default_value => "", >+ is_foreign_key => 1, >+ is_nullable => 0, >+ size => 10, >+ }, >+ "tagfield", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 }, >+ "liblibrarian", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, >+ "libopac", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, >+ "repeatable", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "mandatory", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "authorised_value", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+); >+__PACKAGE__->set_primary_key("authtypecode", "tagfield"); >+ >+=head1 RELATIONS >+ >+=head2 authtypecode >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::AuthType> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "authtypecode", >+ "Koha::Schema::Result::AuthType", >+ { authtypecode => "authtypecode" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EIrlKC3v6sYrPt9F21xeag >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/AuthType.pm b/Koha/Schema/Result/AuthType.pm >new file mode 100644 >index 0000000..a84d931 >--- /dev/null >+++ b/Koha/Schema/Result/AuthType.pm >@@ -0,0 +1,85 @@ >+package Koha::Schema::Result::AuthType; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::AuthType >+ >+=cut >+ >+__PACKAGE__->table("auth_types"); >+ >+=head1 ACCESSORS >+ >+=head2 authtypecode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=head2 authtypetext >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 255 >+ >+=head2 auth_tag_to_report >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 3 >+ >+=head2 summary >+ >+ data_type: 'mediumtext' >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "authtypecode", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+ "authtypetext", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, >+ "auth_tag_to_report", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 }, >+ "summary", >+ { data_type => "mediumtext", is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("authtypecode"); >+ >+=head1 RELATIONS >+ >+=head2 auth_tag_structures >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::AuthTagStructure> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "auth_tag_structures", >+ "Koha::Schema::Result::AuthTagStructure", >+ { "foreign.authtypecode" => "self.authtypecode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:n40JCBQ6mHTaHDRGG8mk2w >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/AuthorisedValue.pm b/Koha/Schema/Result/AuthorisedValue.pm >new file mode 100644 >index 0000000..1c47e5b >--- /dev/null >+++ b/Koha/Schema/Result/AuthorisedValue.pm >@@ -0,0 +1,84 @@ >+package Koha::Schema::Result::AuthorisedValue; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::AuthorisedValue >+ >+=cut >+ >+__PACKAGE__->table("authorised_values"); >+ >+=head1 ACCESSORS >+ >+=head2 id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 category >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 16 >+ >+=head2 authorised_value >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 80 >+ >+=head2 lib >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 200 >+ >+=head2 lib_opac >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 200 >+ >+=head2 imageurl >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 200 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "category", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 16 }, >+ "authorised_value", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 80 }, >+ "lib", >+ { data_type => "varchar", is_nullable => 1, size => 200 }, >+ "lib_opac", >+ { data_type => "varchar", is_nullable => 1, size => 200 }, >+ "imageurl", >+ { data_type => "varchar", is_nullable => 1, size => 200 }, >+); >+__PACKAGE__->set_primary_key("id"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GpXi5gcFBtEj82hEFzhmVg >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Biblio.pm b/Koha/Schema/Result/Biblio.pm >new file mode 100644 >index 0000000..1192307 >--- /dev/null >+++ b/Koha/Schema/Result/Biblio.pm >@@ -0,0 +1,308 @@ >+package Koha::Schema::Result::Biblio; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Biblio >+ >+=cut >+ >+__PACKAGE__->table("biblio"); >+ >+=head1 ACCESSORS >+ >+=head2 biblionumber >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 frameworkcode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 4 >+ >+=head2 author >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 title >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 unititle >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 notes >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 serial >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 seriestitle >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 copyrightdate >+ >+ data_type: 'smallint' >+ is_nullable: 1 >+ >+=head2 timestamp >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=head2 datecreated >+ >+ data_type: 'date' >+ is_nullable: 0 >+ >+=head2 abstract >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "biblionumber", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "frameworkcode", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 }, >+ "author", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "title", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "unititle", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "notes", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "serial", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "seriestitle", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "copyrightdate", >+ { data_type => "smallint", is_nullable => 1 }, >+ "timestamp", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+ "datecreated", >+ { data_type => "date", is_nullable => 0 }, >+ "abstract", >+ { data_type => "mediumtext", is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("biblionumber"); >+ >+=head1 RELATIONS >+ >+=head2 aqorders >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Aqorder> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "aqorders", >+ "Koha::Schema::Result::Aqorder", >+ { "foreign.biblionumber" => "self.biblionumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 biblioimages >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Biblioimage> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "biblioimages", >+ "Koha::Schema::Result::Biblioimage", >+ { "foreign.biblionumber" => "self.biblionumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 biblioitems >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Biblioitem> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "biblioitems", >+ "Koha::Schema::Result::Biblioitem", >+ { "foreign.biblionumber" => "self.biblionumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 hold_fill_targets >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::HoldFillTarget> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "hold_fill_targets", >+ "Koha::Schema::Result::HoldFillTarget", >+ { "foreign.biblionumber" => "self.biblionumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 oai_sets_biblios >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::OaiSetsBiblio> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "oai_sets_biblios", >+ "Koha::Schema::Result::OaiSetsBiblio", >+ { "foreign.biblionumber" => "self.biblionumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 old_reserves >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::OldReserve> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "old_reserves", >+ "Koha::Schema::Result::OldReserve", >+ { "foreign.biblionumber" => "self.biblionumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 ratings >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Rating> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "ratings", >+ "Koha::Schema::Result::Rating", >+ { "foreign.biblionumber" => "self.biblionumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 reserves >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Reserve> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "reserves", >+ "Koha::Schema::Result::Reserve", >+ { "foreign.biblionumber" => "self.biblionumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 reviews >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Review> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "reviews", >+ "Koha::Schema::Result::Review", >+ { "foreign.biblionumber" => "self.biblionumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 tags_all >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::TagAll> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "tags_all", >+ "Koha::Schema::Result::TagAll", >+ { "foreign.biblionumber" => "self.biblionumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 tags_indexes >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::TagsIndex> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "tags_indexes", >+ "Koha::Schema::Result::TagsIndex", >+ { "foreign.biblionumber" => "self.biblionumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 virtualshelfcontents >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Virtualshelfcontent> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "virtualshelfcontents", >+ "Koha::Schema::Result::Virtualshelfcontent", >+ { "foreign.biblionumber" => "self.biblionumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NwOZPwmnB/44XMp45TzWVg >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/BiblioFramework.pm b/Koha/Schema/Result/BiblioFramework.pm >new file mode 100644 >index 0000000..e2a34d5 >--- /dev/null >+++ b/Koha/Schema/Result/BiblioFramework.pm >@@ -0,0 +1,52 @@ >+package Koha::Schema::Result::BiblioFramework; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::BiblioFramework >+ >+=cut >+ >+__PACKAGE__->table("biblio_framework"); >+ >+=head1 ACCESSORS >+ >+=head2 frameworkcode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 4 >+ >+=head2 frameworktext >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 255 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "frameworkcode", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 }, >+ "frameworktext", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, >+); >+__PACKAGE__->set_primary_key("frameworkcode"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tEQykJXvhOfUAxNs4DnBaQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Biblioimage.pm b/Koha/Schema/Result/Biblioimage.pm >new file mode 100644 >index 0000000..39b69b8 >--- /dev/null >+++ b/Koha/Schema/Result/Biblioimage.pm >@@ -0,0 +1,89 @@ >+package Koha::Schema::Result::Biblioimage; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Biblioimage >+ >+=cut >+ >+__PACKAGE__->table("biblioimages"); >+ >+=head1 ACCESSORS >+ >+=head2 imagenumber >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 biblionumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 mimetype >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 15 >+ >+=head2 imagefile >+ >+ data_type: 'mediumblob' >+ is_nullable: 0 >+ >+=head2 thumbnail >+ >+ data_type: 'mediumblob' >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "imagenumber", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "biblionumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "mimetype", >+ { data_type => "varchar", is_nullable => 0, size => 15 }, >+ "imagefile", >+ { data_type => "mediumblob", is_nullable => 0 }, >+ "thumbnail", >+ { data_type => "mediumblob", is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("imagenumber"); >+ >+=head1 RELATIONS >+ >+=head2 biblionumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Biblio> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "biblionumber", >+ "Koha::Schema::Result::Biblio", >+ { biblionumber => "biblionumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9P2Yp+Ye/tJ3+aG7mQR8sQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Biblioitem.pm b/Koha/Schema/Result/Biblioitem.pm >new file mode 100644 >index 0000000..18ea787 >--- /dev/null >+++ b/Koha/Schema/Result/Biblioitem.pm >@@ -0,0 +1,334 @@ >+package Koha::Schema::Result::Biblioitem; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Biblioitem >+ >+=cut >+ >+__PACKAGE__->table("biblioitems"); >+ >+=head1 ACCESSORS >+ >+=head2 biblioitemnumber >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 biblionumber >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 volume >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 number >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 itemtype >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 isbn >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 30 >+ >+=head2 issn >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 9 >+ >+=head2 ean >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 13 >+ >+=head2 publicationyear >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 publishercode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 volumedate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 volumedesc >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 collectiontitle >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 collectionissn >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 collectionvolume >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 editionstatement >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 editionresponsibility >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 timestamp >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=head2 illus >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 pages >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 notes >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 size >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 place >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 lccn >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 25 >+ >+=head2 marc >+ >+ data_type: 'longblob' >+ is_nullable: 1 >+ >+=head2 url >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 cn_source >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 cn_class >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 30 >+ >+=head2 cn_item >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 cn_suffix >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 cn_sort >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 30 >+ >+=head2 agerestriction >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 totalissues >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 marcxml >+ >+ data_type: 'longtext' >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "biblioitemnumber", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "biblionumber", >+ { >+ data_type => "integer", >+ default_value => 0, >+ is_foreign_key => 1, >+ is_nullable => 0, >+ }, >+ "volume", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "number", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "itemtype", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "isbn", >+ { data_type => "varchar", is_nullable => 1, size => 30 }, >+ "issn", >+ { data_type => "varchar", is_nullable => 1, size => 9 }, >+ "ean", >+ { data_type => "varchar", is_nullable => 1, size => 13 }, >+ "publicationyear", >+ { data_type => "text", is_nullable => 1 }, >+ "publishercode", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "volumedate", >+ { data_type => "date", is_nullable => 1 }, >+ "volumedesc", >+ { data_type => "text", is_nullable => 1 }, >+ "collectiontitle", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "collectionissn", >+ { data_type => "text", is_nullable => 1 }, >+ "collectionvolume", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "editionstatement", >+ { data_type => "text", is_nullable => 1 }, >+ "editionresponsibility", >+ { data_type => "text", is_nullable => 1 }, >+ "timestamp", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+ "illus", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "pages", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "notes", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "size", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "place", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "lccn", >+ { data_type => "varchar", is_nullable => 1, size => 25 }, >+ "marc", >+ { data_type => "longblob", is_nullable => 1 }, >+ "url", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "cn_source", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "cn_class", >+ { data_type => "varchar", is_nullable => 1, size => 30 }, >+ "cn_item", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "cn_suffix", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "cn_sort", >+ { data_type => "varchar", is_nullable => 1, size => 30 }, >+ "agerestriction", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "totalissues", >+ { data_type => "integer", is_nullable => 1 }, >+ "marcxml", >+ { data_type => "longtext", is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("biblioitemnumber"); >+ >+=head1 RELATIONS >+ >+=head2 biblionumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Biblio> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "biblionumber", >+ "Koha::Schema::Result::Biblio", >+ { biblionumber => "biblionumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 items >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Item> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "items", >+ "Koha::Schema::Result::Item", >+ { "foreign.biblioitemnumber" => "self.biblioitemnumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:j5xMUqTsOxa/ieu7yPnOaA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Borrower.pm b/Koha/Schema/Result/Borrower.pm >new file mode 100644 >index 0000000..1d38b53 >--- /dev/null >+++ b/Koha/Schema/Result/Borrower.pm >@@ -0,0 +1,943 @@ >+package Koha::Schema::Result::Borrower; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Borrower >+ >+=cut >+ >+__PACKAGE__->table("borrowers"); >+ >+=head1 ACCESSORS >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 cardnumber >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 16 >+ >+=head2 surname >+ >+ data_type: 'mediumtext' >+ is_nullable: 0 >+ >+=head2 firstname >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 title >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 othernames >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 initials >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 streetnumber >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 streettype >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 50 >+ >+=head2 address >+ >+ data_type: 'mediumtext' >+ is_nullable: 0 >+ >+=head2 address2 >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 city >+ >+ data_type: 'mediumtext' >+ is_nullable: 0 >+ >+=head2 state >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 zipcode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 25 >+ >+=head2 country >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 email >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 phone >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 mobile >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 50 >+ >+=head2 fax >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 emailpro >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 phonepro >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 b_streetnumber >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 b_streettype >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 50 >+ >+=head2 b_address >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 100 >+ >+=head2 b_address2 >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 b_city >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 b_state >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 b_zipcode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 25 >+ >+=head2 b_country >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 b_email >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 b_phone >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 dateofbirth >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 branchcode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 10 >+ >+=head2 categorycode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 10 >+ >+=head2 dateenrolled >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 dateexpiry >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 gonenoaddress >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 lost >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 debarred >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 debarredcomment >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 contactname >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 contactfirstname >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 contacttitle >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 guarantorid >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 borrowernotes >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 relationship >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 100 >+ >+=head2 ethnicity >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 50 >+ >+=head2 ethnotes >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 sex >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 1 >+ >+=head2 password >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 30 >+ >+=head2 flags >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 userid >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 75 >+ >+=head2 opacnote >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 contactnote >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 sort1 >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 80 >+ >+=head2 sort2 >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 80 >+ >+=head2 altcontactfirstname >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 altcontactsurname >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 altcontactaddress1 >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 altcontactaddress2 >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 altcontactaddress3 >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 altcontactstate >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 altcontactzipcode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 50 >+ >+=head2 altcontactcountry >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 altcontactphone >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 50 >+ >+=head2 smsalertnumber >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 50 >+ >+=head2 privacy >+ >+ data_type: 'integer' >+ default_value: 1 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "borrowernumber", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "cardnumber", >+ { data_type => "varchar", is_nullable => 1, size => 16 }, >+ "surname", >+ { data_type => "mediumtext", is_nullable => 0 }, >+ "firstname", >+ { data_type => "text", is_nullable => 1 }, >+ "title", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "othernames", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "initials", >+ { data_type => "text", is_nullable => 1 }, >+ "streetnumber", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "streettype", >+ { data_type => "varchar", is_nullable => 1, size => 50 }, >+ "address", >+ { data_type => "mediumtext", is_nullable => 0 }, >+ "address2", >+ { data_type => "text", is_nullable => 1 }, >+ "city", >+ { data_type => "mediumtext", is_nullable => 0 }, >+ "state", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "zipcode", >+ { data_type => "varchar", is_nullable => 1, size => 25 }, >+ "country", >+ { data_type => "text", is_nullable => 1 }, >+ "email", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "phone", >+ { data_type => "text", is_nullable => 1 }, >+ "mobile", >+ { data_type => "varchar", is_nullable => 1, size => 50 }, >+ "fax", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "emailpro", >+ { data_type => "text", is_nullable => 1 }, >+ "phonepro", >+ { data_type => "text", is_nullable => 1 }, >+ "b_streetnumber", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "b_streettype", >+ { data_type => "varchar", is_nullable => 1, size => 50 }, >+ "b_address", >+ { data_type => "varchar", is_nullable => 1, size => 100 }, >+ "b_address2", >+ { data_type => "text", is_nullable => 1 }, >+ "b_city", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "b_state", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "b_zipcode", >+ { data_type => "varchar", is_nullable => 1, size => 25 }, >+ "b_country", >+ { data_type => "text", is_nullable => 1 }, >+ "b_email", >+ { data_type => "text", is_nullable => 1 }, >+ "b_phone", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "dateofbirth", >+ { data_type => "date", is_nullable => 1 }, >+ "branchcode", >+ { >+ data_type => "varchar", >+ default_value => "", >+ is_foreign_key => 1, >+ is_nullable => 0, >+ size => 10, >+ }, >+ "categorycode", >+ { >+ data_type => "varchar", >+ default_value => "", >+ is_foreign_key => 1, >+ is_nullable => 0, >+ size => 10, >+ }, >+ "dateenrolled", >+ { data_type => "date", is_nullable => 1 }, >+ "dateexpiry", >+ { data_type => "date", is_nullable => 1 }, >+ "gonenoaddress", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "lost", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "debarred", >+ { data_type => "date", is_nullable => 1 }, >+ "debarredcomment", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "contactname", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "contactfirstname", >+ { data_type => "text", is_nullable => 1 }, >+ "contacttitle", >+ { data_type => "text", is_nullable => 1 }, >+ "guarantorid", >+ { data_type => "integer", is_nullable => 1 }, >+ "borrowernotes", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "relationship", >+ { data_type => "varchar", is_nullable => 1, size => 100 }, >+ "ethnicity", >+ { data_type => "varchar", is_nullable => 1, size => 50 }, >+ "ethnotes", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "sex", >+ { data_type => "varchar", is_nullable => 1, size => 1 }, >+ "password", >+ { data_type => "varchar", is_nullable => 1, size => 30 }, >+ "flags", >+ { data_type => "integer", is_nullable => 1 }, >+ "userid", >+ { data_type => "varchar", is_nullable => 1, size => 75 }, >+ "opacnote", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "contactnote", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "sort1", >+ { data_type => "varchar", is_nullable => 1, size => 80 }, >+ "sort2", >+ { data_type => "varchar", is_nullable => 1, size => 80 }, >+ "altcontactfirstname", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "altcontactsurname", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "altcontactaddress1", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "altcontactaddress2", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "altcontactaddress3", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "altcontactstate", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "altcontactzipcode", >+ { data_type => "varchar", is_nullable => 1, size => 50 }, >+ "altcontactcountry", >+ { data_type => "text", is_nullable => 1 }, >+ "altcontactphone", >+ { data_type => "varchar", is_nullable => 1, size => 50 }, >+ "smsalertnumber", >+ { data_type => "varchar", is_nullable => 1, size => 50 }, >+ "privacy", >+ { data_type => "integer", default_value => 1, is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("borrowernumber"); >+__PACKAGE__->add_unique_constraint("cardnumber", ["cardnumber"]); >+ >+=head1 RELATIONS >+ >+=head2 accountlines >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Accountline> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "accountlines", >+ "Koha::Schema::Result::Accountline", >+ { "foreign.borrowernumber" => "self.borrowernumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 accountoffsets >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Accountoffset> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "accountoffsets", >+ "Koha::Schema::Result::Accountoffset", >+ { "foreign.borrowernumber" => "self.borrowernumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 aqbudgetborrowers >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Aqbudgetborrower> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "aqbudgetborrowers", >+ "Koha::Schema::Result::Aqbudgetborrower", >+ { "foreign.borrowernumber" => "self.borrowernumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 borrower_attributes >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::BorrowerAttribute> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "borrower_attributes", >+ "Koha::Schema::Result::BorrowerAttribute", >+ { "foreign.borrowernumber" => "self.borrowernumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 borrower_files >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::BorrowerFile> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "borrower_files", >+ "Koha::Schema::Result::BorrowerFile", >+ { "foreign.borrowernumber" => "self.borrowernumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 borrower_message_preferences >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::BorrowerMessagePreference> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "borrower_message_preferences", >+ "Koha::Schema::Result::BorrowerMessagePreference", >+ { "foreign.borrowernumber" => "self.borrowernumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 categorycode >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Category> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "categorycode", >+ "Koha::Schema::Result::Category", >+ { categorycode => "categorycode" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 branchcode >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Branch> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "branchcode", >+ "Koha::Schema::Result::Branch", >+ { branchcode => "branchcode" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 creator_batches >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::CreatorBatch> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "creator_batches", >+ "Koha::Schema::Result::CreatorBatch", >+ { "foreign.borrower_number" => "self.borrowernumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 hold_fill_targets >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::HoldFillTarget> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "hold_fill_targets", >+ "Koha::Schema::Result::HoldFillTarget", >+ { "foreign.borrowernumber" => "self.borrowernumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 issues >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Issue> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "issues", >+ "Koha::Schema::Result::Issue", >+ { "foreign.borrowernumber" => "self.borrowernumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 message_queues >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::MessageQueue> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "message_queues", >+ "Koha::Schema::Result::MessageQueue", >+ { "foreign.borrowernumber" => "self.borrowernumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 old_issues >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::OldIssue> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "old_issues", >+ "Koha::Schema::Result::OldIssue", >+ { "foreign.borrowernumber" => "self.borrowernumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 old_reserves >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::OldReserve> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "old_reserves", >+ "Koha::Schema::Result::OldReserve", >+ { "foreign.borrowernumber" => "self.borrowernumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 patroncards >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Patroncard> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "patroncards", >+ "Koha::Schema::Result::Patroncard", >+ { "foreign.borrowernumber" => "self.borrowernumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 patronimage >+ >+Type: might_have >+ >+Related object: L<Koha::Schema::Result::Patronimage> >+ >+=cut >+ >+__PACKAGE__->might_have( >+ "patronimage", >+ "Koha::Schema::Result::Patronimage", >+ { "foreign.cardnumber" => "self.cardnumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 ratings >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Rating> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "ratings", >+ "Koha::Schema::Result::Rating", >+ { "foreign.borrowernumber" => "self.borrowernumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 reserves >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Reserve> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "reserves", >+ "Koha::Schema::Result::Reserve", >+ { "foreign.borrowernumber" => "self.borrowernumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 reviews >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Review> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "reviews", >+ "Koha::Schema::Result::Review", >+ { "foreign.borrowernumber" => "self.borrowernumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 subscriptionroutinglists >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Subscriptionroutinglist> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "subscriptionroutinglists", >+ "Koha::Schema::Result::Subscriptionroutinglist", >+ { "foreign.borrowernumber" => "self.borrowernumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 tags_all >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::TagAll> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "tags_all", >+ "Koha::Schema::Result::TagAll", >+ { "foreign.borrowernumber" => "self.borrowernumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 tags_approvals >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::TagsApproval> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "tags_approvals", >+ "Koha::Schema::Result::TagsApproval", >+ { "foreign.approved_by" => "self.borrowernumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 user_permissions >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::UserPermission> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "user_permissions", >+ "Koha::Schema::Result::UserPermission", >+ { "foreign.borrowernumber" => "self.borrowernumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 virtualshelfcontents >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Virtualshelfcontent> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "virtualshelfcontents", >+ "Koha::Schema::Result::Virtualshelfcontent", >+ { "foreign.borrowernumber" => "self.borrowernumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 virtualshelfshares >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Virtualshelfshare> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "virtualshelfshares", >+ "Koha::Schema::Result::Virtualshelfshare", >+ { "foreign.borrowernumber" => "self.borrowernumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 virtualshelves >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Virtualshelve> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "virtualshelves", >+ "Koha::Schema::Result::Virtualshelve", >+ { "foreign.owner" => "self.borrowernumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:a5PYhuHX3DHlNJqdmIuqTw >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/BorrowerAttribute.pm b/Koha/Schema/Result/BorrowerAttribute.pm >new file mode 100644 >index 0000000..3ac3b83 >--- /dev/null >+++ b/Koha/Schema/Result/BorrowerAttribute.pm >@@ -0,0 +1,98 @@ >+package Koha::Schema::Result::BorrowerAttribute; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::BorrowerAttribute >+ >+=cut >+ >+__PACKAGE__->table("borrower_attributes"); >+ >+=head1 ACCESSORS >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 code >+ >+ data_type: 'varchar' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 10 >+ >+=head2 attribute >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 password >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 64 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "borrowernumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "code", >+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, >+ "attribute", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "password", >+ { data_type => "varchar", is_nullable => 1, size => 64 }, >+); >+ >+=head1 RELATIONS >+ >+=head2 borrowernumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "borrowernumber", >+ "Koha::Schema::Result::Borrower", >+ { borrowernumber => "borrowernumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 code >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::BorrowerAttributeType> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "code", >+ "Koha::Schema::Result::BorrowerAttributeType", >+ { code => "code" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LWaFw4Fk0Bj+K6JgDpicmA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/BorrowerAttributeType.pm b/Koha/Schema/Result/BorrowerAttributeType.pm >new file mode 100644 >index 0000000..2be37f1 >--- /dev/null >+++ b/Koha/Schema/Result/BorrowerAttributeType.pm >@@ -0,0 +1,156 @@ >+package Koha::Schema::Result::BorrowerAttributeType; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::BorrowerAttributeType >+ >+=cut >+ >+__PACKAGE__->table("borrower_attribute_types"); >+ >+=head1 ACCESSORS >+ >+=head2 code >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 10 >+ >+=head2 description >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 255 >+ >+=head2 repeatable >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 unique_id >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 opac_display >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 password_allowed >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 staff_searchable >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 authorised_value_category >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 display_checkout >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 category_code >+ >+ data_type: 'varchar' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ size: 10 >+ >+=head2 class >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 255 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "code", >+ { data_type => "varchar", is_nullable => 0, size => 10 }, >+ "description", >+ { data_type => "varchar", is_nullable => 0, size => 255 }, >+ "repeatable", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "unique_id", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "opac_display", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "password_allowed", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "staff_searchable", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "authorised_value_category", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "display_checkout", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "category_code", >+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, >+ "class", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, >+); >+__PACKAGE__->set_primary_key("code"); >+ >+=head1 RELATIONS >+ >+=head2 category_code >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Category> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "category_code", >+ "Koha::Schema::Result::Category", >+ { categorycode => "category_code" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 borrower_attributes >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::BorrowerAttribute> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "borrower_attributes", >+ "Koha::Schema::Result::BorrowerAttribute", >+ { "foreign.code" => "self.code" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EpdavGdH3uR/eaNLJIoHCg >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/BorrowerFile.pm b/Koha/Schema/Result/BorrowerFile.pm >new file mode 100644 >index 0000000..d967be9 >--- /dev/null >+++ b/Koha/Schema/Result/BorrowerFile.pm >@@ -0,0 +1,110 @@ >+package Koha::Schema::Result::BorrowerFile; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::BorrowerFile >+ >+=cut >+ >+__PACKAGE__->table("borrower_files"); >+ >+=head1 ACCESSORS >+ >+=head2 file_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 file_name >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 255 >+ >+=head2 file_type >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 255 >+ >+=head2 file_description >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 file_content >+ >+ data_type: 'longblob' >+ is_nullable: 0 >+ >+=head2 date_uploaded >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "file_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "borrowernumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "file_name", >+ { data_type => "varchar", is_nullable => 0, size => 255 }, >+ "file_type", >+ { data_type => "varchar", is_nullable => 0, size => 255 }, >+ "file_description", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "file_content", >+ { data_type => "longblob", is_nullable => 0 }, >+ "date_uploaded", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+); >+__PACKAGE__->set_primary_key("file_id"); >+ >+=head1 RELATIONS >+ >+=head2 borrowernumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "borrowernumber", >+ "Koha::Schema::Result::Borrower", >+ { borrowernumber => "borrowernumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5nM5pPcZmdSjcoBGIlTp9A >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/BorrowerMessagePreference.pm b/Koha/Schema/Result/BorrowerMessagePreference.pm >new file mode 100644 >index 0000000..03cecfb >--- /dev/null >+++ b/Koha/Schema/Result/BorrowerMessagePreference.pm >@@ -0,0 +1,153 @@ >+package Koha::Schema::Result::BorrowerMessagePreference; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::BorrowerMessagePreference >+ >+=cut >+ >+__PACKAGE__->table("borrower_message_preferences"); >+ >+=head1 ACCESSORS >+ >+=head2 borrower_message_preference_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+=head2 categorycode >+ >+ data_type: 'varchar' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ size: 10 >+ >+=head2 message_attribute_id >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+=head2 days_in_advance >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 wants_digest >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "borrower_message_preference_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "borrowernumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, >+ "categorycode", >+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, >+ "message_attribute_id", >+ { >+ data_type => "integer", >+ default_value => 0, >+ is_foreign_key => 1, >+ is_nullable => 1, >+ }, >+ "days_in_advance", >+ { data_type => "integer", default_value => 0, is_nullable => 1 }, >+ "wants_digest", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("borrower_message_preference_id"); >+ >+=head1 RELATIONS >+ >+=head2 borrowernumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "borrowernumber", >+ "Koha::Schema::Result::Borrower", >+ { borrowernumber => "borrowernumber" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 message_attribute >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::MessageAttribute> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "message_attribute", >+ "Koha::Schema::Result::MessageAttribute", >+ { message_attribute_id => "message_attribute_id" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 categorycode >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Category> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "categorycode", >+ "Koha::Schema::Result::Category", >+ { categorycode => "categorycode" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 borrower_message_transport_preferences >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::BorrowerMessageTransportPreference> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "borrower_message_transport_preferences", >+ "Koha::Schema::Result::BorrowerMessageTransportPreference", >+ { >+ "foreign.borrower_message_preference_id" => "self.borrower_message_preference_id", >+ }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dP6LspN4dP65EGfApx6xIw >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/BorrowerMessageTransportPreference.pm b/Koha/Schema/Result/BorrowerMessageTransportPreference.pm >new file mode 100644 >index 0000000..d898a60 >--- /dev/null >+++ b/Koha/Schema/Result/BorrowerMessageTransportPreference.pm >@@ -0,0 +1,98 @@ >+package Koha::Schema::Result::BorrowerMessageTransportPreference; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::BorrowerMessageTransportPreference >+ >+=cut >+ >+__PACKAGE__->table("borrower_message_transport_preferences"); >+ >+=head1 ACCESSORS >+ >+=head2 borrower_message_preference_id >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 message_transport_type >+ >+ data_type: 'varchar' >+ default_value: 0 >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 20 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "borrower_message_preference_id", >+ { >+ data_type => "integer", >+ default_value => 0, >+ is_foreign_key => 1, >+ is_nullable => 0, >+ }, >+ "message_transport_type", >+ { >+ data_type => "varchar", >+ default_value => 0, >+ is_foreign_key => 1, >+ is_nullable => 0, >+ size => 20, >+ }, >+); >+__PACKAGE__->set_primary_key("borrower_message_preference_id", "message_transport_type"); >+ >+=head1 RELATIONS >+ >+=head2 borrower_message_preference >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::BorrowerMessagePreference> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "borrower_message_preference", >+ "Koha::Schema::Result::BorrowerMessagePreference", >+ { >+ borrower_message_preference_id => "borrower_message_preference_id", >+ }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 message_transport_type >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::MessageTransportType> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "message_transport_type", >+ "Koha::Schema::Result::MessageTransportType", >+ { message_transport_type => "message_transport_type" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Pqunp568ul/dBpW5ISwr7Q >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Branch.pm b/Koha/Schema/Result/Branch.pm >new file mode 100644 >index 0000000..d6958d0 >--- /dev/null >+++ b/Koha/Schema/Result/Branch.pm >@@ -0,0 +1,377 @@ >+package Koha::Schema::Result::Branch; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Branch >+ >+=cut >+ >+__PACKAGE__->table("branches"); >+ >+=head1 ACCESSORS >+ >+=head2 branchcode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=head2 branchname >+ >+ data_type: 'mediumtext' >+ is_nullable: 0 >+ >+=head2 branchaddress1 >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 branchaddress2 >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 branchaddress3 >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 branchzip >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 25 >+ >+=head2 branchcity >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 branchstate >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 branchcountry >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 branchphone >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 branchfax >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 branchemail >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 branchurl >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 issuing >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 branchip >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 15 >+ >+=head2 branchprinter >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 100 >+ >+=head2 branchnotes >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 opac_info >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "branchcode", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+ "branchname", >+ { data_type => "mediumtext", is_nullable => 0 }, >+ "branchaddress1", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "branchaddress2", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "branchaddress3", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "branchzip", >+ { data_type => "varchar", is_nullable => 1, size => 25 }, >+ "branchcity", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "branchstate", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "branchcountry", >+ { data_type => "text", is_nullable => 1 }, >+ "branchphone", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "branchfax", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "branchemail", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "branchurl", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "issuing", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "branchip", >+ { data_type => "varchar", is_nullable => 1, size => 15 }, >+ "branchprinter", >+ { data_type => "varchar", is_nullable => 1, size => 100 }, >+ "branchnotes", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "opac_info", >+ { data_type => "text", is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("branchcode"); >+ >+=head1 RELATIONS >+ >+=head2 borrowers >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "borrowers", >+ "Koha::Schema::Result::Borrower", >+ { "foreign.branchcode" => "self.branchcode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 branch_borrower_circ_rules >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::BranchBorrowerCircRule> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "branch_borrower_circ_rules", >+ "Koha::Schema::Result::BranchBorrowerCircRule", >+ { "foreign.branchcode" => "self.branchcode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 branch_item_rules >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::BranchItemRule> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "branch_item_rules", >+ "Koha::Schema::Result::BranchItemRule", >+ { "foreign.branchcode" => "self.branchcode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 branchrelations >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Branchrelation> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "branchrelations", >+ "Koha::Schema::Result::Branchrelation", >+ { "foreign.branchcode" => "self.branchcode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 branchtransfers_frombranches >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Branchtransfer> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "branchtransfers_frombranches", >+ "Koha::Schema::Result::Branchtransfer", >+ { "foreign.frombranch" => "self.branchcode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 branchtransfers_tobranches >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Branchtransfer> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "branchtransfers_tobranches", >+ "Koha::Schema::Result::Branchtransfer", >+ { "foreign.tobranch" => "self.branchcode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 creator_batches >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::CreatorBatch> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "creator_batches", >+ "Koha::Schema::Result::CreatorBatch", >+ { "foreign.branch_code" => "self.branchcode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 default_branch_circ_rule >+ >+Type: might_have >+ >+Related object: L<Koha::Schema::Result::DefaultBranchCircRule> >+ >+=cut >+ >+__PACKAGE__->might_have( >+ "default_branch_circ_rule", >+ "Koha::Schema::Result::DefaultBranchCircRule", >+ { "foreign.branchcode" => "self.branchcode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 hold_fill_targets >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::HoldFillTarget> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "hold_fill_targets", >+ "Koha::Schema::Result::HoldFillTarget", >+ { "foreign.source_branchcode" => "self.branchcode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 items_homebranches >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Item> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "items_homebranches", >+ "Koha::Schema::Result::Item", >+ { "foreign.homebranch" => "self.branchcode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 items_holdingbranches >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Item> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "items_holdingbranches", >+ "Koha::Schema::Result::Item", >+ { "foreign.holdingbranch" => "self.branchcode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 reserves >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Reserve> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "reserves", >+ "Koha::Schema::Result::Reserve", >+ { "foreign.branchcode" => "self.branchcode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 transport_cost_frombranches >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::TransportCost> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "transport_cost_frombranches", >+ "Koha::Schema::Result::TransportCost", >+ { "foreign.frombranch" => "self.branchcode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 transport_cost_tobranches >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::TransportCost> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "transport_cost_tobranches", >+ "Koha::Schema::Result::TransportCost", >+ { "foreign.tobranch" => "self.branchcode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7/fUACQhSXHg0daDi6MGbQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/BranchBorrowerCircRule.pm b/Koha/Schema/Result/BranchBorrowerCircRule.pm >new file mode 100644 >index 0000000..071df51 >--- /dev/null >+++ b/Koha/Schema/Result/BranchBorrowerCircRule.pm >@@ -0,0 +1,91 @@ >+package Koha::Schema::Result::BranchBorrowerCircRule; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::BranchBorrowerCircRule >+ >+=cut >+ >+__PACKAGE__->table("branch_borrower_circ_rules"); >+ >+=head1 ACCESSORS >+ >+=head2 branchcode >+ >+ data_type: 'varchar' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 10 >+ >+=head2 categorycode >+ >+ data_type: 'varchar' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 10 >+ >+=head2 maxissueqty >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "branchcode", >+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, >+ "categorycode", >+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, >+ "maxissueqty", >+ { data_type => "integer", is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("categorycode", "branchcode"); >+ >+=head1 RELATIONS >+ >+=head2 categorycode >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Category> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "categorycode", >+ "Koha::Schema::Result::Category", >+ { categorycode => "categorycode" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 branchcode >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Branch> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "branchcode", >+ "Koha::Schema::Result::Branch", >+ { branchcode => "branchcode" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Urf4PD4Ob8D3kqgvz7PGtA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/BranchItemRule.pm b/Koha/Schema/Result/BranchItemRule.pm >new file mode 100644 >index 0000000..c73c04c >--- /dev/null >+++ b/Koha/Schema/Result/BranchItemRule.pm >@@ -0,0 +1,99 @@ >+package Koha::Schema::Result::BranchItemRule; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::BranchItemRule >+ >+=cut >+ >+__PACKAGE__->table("branch_item_rules"); >+ >+=head1 ACCESSORS >+ >+=head2 branchcode >+ >+ data_type: 'varchar' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 10 >+ >+=head2 itemtype >+ >+ data_type: 'varchar' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 10 >+ >+=head2 holdallowed >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 returnbranch >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 15 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "branchcode", >+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, >+ "itemtype", >+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, >+ "holdallowed", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "returnbranch", >+ { data_type => "varchar", is_nullable => 1, size => 15 }, >+); >+__PACKAGE__->set_primary_key("itemtype", "branchcode"); >+ >+=head1 RELATIONS >+ >+=head2 itemtype >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Itemtype> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "itemtype", >+ "Koha::Schema::Result::Itemtype", >+ { itemtype => "itemtype" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 branchcode >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Branch> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "branchcode", >+ "Koha::Schema::Result::Branch", >+ { branchcode => "branchcode" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7Pbf8S6Y9k2teX1337IGIA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/BranchTransferLimit.pm b/Koha/Schema/Result/BranchTransferLimit.pm >new file mode 100644 >index 0000000..f82ff05 >--- /dev/null >+++ b/Koha/Schema/Result/BranchTransferLimit.pm >@@ -0,0 +1,74 @@ >+package Koha::Schema::Result::BranchTransferLimit; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::BranchTransferLimit >+ >+=cut >+ >+__PACKAGE__->table("branch_transfer_limits"); >+ >+=head1 ACCESSORS >+ >+=head2 limitid >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 tobranch >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 10 >+ >+=head2 frombranch >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 10 >+ >+=head2 itemtype >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 ccode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "limitid", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "tobranch", >+ { data_type => "varchar", is_nullable => 0, size => 10 }, >+ "frombranch", >+ { data_type => "varchar", is_nullable => 0, size => 10 }, >+ "itemtype", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "ccode", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+); >+__PACKAGE__->set_primary_key("limitid"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5tloMmwsDVXChfqSMEPOoA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Branchcategory.pm b/Koha/Schema/Result/Branchcategory.pm >new file mode 100644 >index 0000000..7538dfa >--- /dev/null >+++ b/Koha/Schema/Result/Branchcategory.pm >@@ -0,0 +1,83 @@ >+package Koha::Schema::Result::Branchcategory; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Branchcategory >+ >+=cut >+ >+__PACKAGE__->table("branchcategories"); >+ >+=head1 ACCESSORS >+ >+=head2 categorycode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=head2 categoryname >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 32 >+ >+=head2 codedescription >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 categorytype >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 16 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "categorycode", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+ "categoryname", >+ { data_type => "varchar", is_nullable => 1, size => 32 }, >+ "codedescription", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "categorytype", >+ { data_type => "varchar", is_nullable => 1, size => 16 }, >+); >+__PACKAGE__->set_primary_key("categorycode"); >+ >+=head1 RELATIONS >+ >+=head2 branchrelations >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Branchrelation> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "branchrelations", >+ "Koha::Schema::Result::Branchrelation", >+ { "foreign.categorycode" => "self.categorycode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:i3um3oAfQ9EV/pJHuUiWnA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Branchrelation.pm b/Koha/Schema/Result/Branchrelation.pm >new file mode 100644 >index 0000000..f84ff27 >--- /dev/null >+++ b/Koha/Schema/Result/Branchrelation.pm >@@ -0,0 +1,98 @@ >+package Koha::Schema::Result::Branchrelation; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Branchrelation >+ >+=cut >+ >+__PACKAGE__->table("branchrelations"); >+ >+=head1 ACCESSORS >+ >+=head2 branchcode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 10 >+ >+=head2 categorycode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 10 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "branchcode", >+ { >+ data_type => "varchar", >+ default_value => "", >+ is_foreign_key => 1, >+ is_nullable => 0, >+ size => 10, >+ }, >+ "categorycode", >+ { >+ data_type => "varchar", >+ default_value => "", >+ is_foreign_key => 1, >+ is_nullable => 0, >+ size => 10, >+ }, >+); >+__PACKAGE__->set_primary_key("branchcode", "categorycode"); >+ >+=head1 RELATIONS >+ >+=head2 branchcode >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Branch> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "branchcode", >+ "Koha::Schema::Result::Branch", >+ { branchcode => "branchcode" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 categorycode >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Branchcategory> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "categorycode", >+ "Koha::Schema::Result::Branchcategory", >+ { categorycode => "categorycode" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VFoJV/KyMCVH7/fD5bSY/w >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Branchtransfer.pm b/Koha/Schema/Result/Branchtransfer.pm >new file mode 100644 >index 0000000..05691c5 >--- /dev/null >+++ b/Koha/Schema/Result/Branchtransfer.pm >@@ -0,0 +1,147 @@ >+package Koha::Schema::Result::Branchtransfer; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Branchtransfer >+ >+=cut >+ >+__PACKAGE__->table("branchtransfers"); >+ >+=head1 ACCESSORS >+ >+=head2 itemnumber >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 datesent >+ >+ data_type: 'datetime' >+ is_nullable: 1 >+ >+=head2 frombranch >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 10 >+ >+=head2 datearrived >+ >+ data_type: 'datetime' >+ is_nullable: 1 >+ >+=head2 tobranch >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 10 >+ >+=head2 comments >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "itemnumber", >+ { >+ data_type => "integer", >+ default_value => 0, >+ is_foreign_key => 1, >+ is_nullable => 0, >+ }, >+ "datesent", >+ { data_type => "datetime", is_nullable => 1 }, >+ "frombranch", >+ { >+ data_type => "varchar", >+ default_value => "", >+ is_foreign_key => 1, >+ is_nullable => 0, >+ size => 10, >+ }, >+ "datearrived", >+ { data_type => "datetime", is_nullable => 1 }, >+ "tobranch", >+ { >+ data_type => "varchar", >+ default_value => "", >+ is_foreign_key => 1, >+ is_nullable => 0, >+ size => 10, >+ }, >+ "comments", >+ { data_type => "mediumtext", is_nullable => 1 }, >+); >+ >+=head1 RELATIONS >+ >+=head2 frombranch >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Branch> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "frombranch", >+ "Koha::Schema::Result::Branch", >+ { branchcode => "frombranch" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 tobranch >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Branch> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "tobranch", >+ "Koha::Schema::Result::Branch", >+ { branchcode => "tobranch" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 itemnumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Item> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "itemnumber", >+ "Koha::Schema::Result::Item", >+ { itemnumber => "itemnumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ojdZ8a0zDyBQi7MaMtCSuQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Browser.pm b/Koha/Schema/Result/Browser.pm >new file mode 100644 >index 0000000..e8d403c >--- /dev/null >+++ b/Koha/Schema/Result/Browser.pm >@@ -0,0 +1,70 @@ >+package Koha::Schema::Result::Browser; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Browser >+ >+=cut >+ >+__PACKAGE__->table("browser"); >+ >+=head1 ACCESSORS >+ >+=head2 level >+ >+ data_type: 'integer' >+ is_nullable: 0 >+ >+=head2 classification >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 20 >+ >+=head2 description >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 255 >+ >+=head2 number >+ >+ data_type: 'bigint' >+ is_nullable: 0 >+ >+=head2 endnode >+ >+ data_type: 'tinyint' >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "level", >+ { data_type => "integer", is_nullable => 0 }, >+ "classification", >+ { data_type => "varchar", is_nullable => 0, size => 20 }, >+ "description", >+ { data_type => "varchar", is_nullable => 0, size => 255 }, >+ "number", >+ { data_type => "bigint", is_nullable => 0 }, >+ "endnode", >+ { data_type => "tinyint", is_nullable => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PdemP//rSRmiSjwhmhigdA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Category.pm b/Koha/Schema/Result/Category.pm >new file mode 100644 >index 0000000..ef75e3d >--- /dev/null >+++ b/Koha/Schema/Result/Category.pm >@@ -0,0 +1,217 @@ >+package Koha::Schema::Result::Category; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Category >+ >+=cut >+ >+__PACKAGE__->table("categories"); >+ >+=head1 ACCESSORS >+ >+=head2 categorycode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=head2 description >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 enrolmentperiod >+ >+ data_type: 'smallint' >+ is_nullable: 1 >+ >+=head2 enrolmentperioddate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 upperagelimit >+ >+ data_type: 'smallint' >+ is_nullable: 1 >+ >+=head2 dateofbirthrequired >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 finetype >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 30 >+ >+=head2 bulk >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 enrolmentfee >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [28,6] >+ >+=head2 overduenoticerequired >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 issuelimit >+ >+ data_type: 'smallint' >+ is_nullable: 1 >+ >+=head2 reservefee >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [28,6] >+ >+=head2 hidelostitems >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 category_type >+ >+ data_type: 'varchar' >+ default_value: 'A' >+ is_nullable: 0 >+ size: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "categorycode", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+ "description", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "enrolmentperiod", >+ { data_type => "smallint", is_nullable => 1 }, >+ "enrolmentperioddate", >+ { data_type => "date", is_nullable => 1 }, >+ "upperagelimit", >+ { data_type => "smallint", is_nullable => 1 }, >+ "dateofbirthrequired", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "finetype", >+ { data_type => "varchar", is_nullable => 1, size => 30 }, >+ "bulk", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "enrolmentfee", >+ { data_type => "decimal", is_nullable => 1, size => [28, 6] }, >+ "overduenoticerequired", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "issuelimit", >+ { data_type => "smallint", is_nullable => 1 }, >+ "reservefee", >+ { data_type => "decimal", is_nullable => 1, size => [28, 6] }, >+ "hidelostitems", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "category_type", >+ { data_type => "varchar", default_value => "A", is_nullable => 0, size => 1 }, >+); >+__PACKAGE__->set_primary_key("categorycode"); >+ >+=head1 RELATIONS >+ >+=head2 borrower_attribute_types >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::BorrowerAttributeType> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "borrower_attribute_types", >+ "Koha::Schema::Result::BorrowerAttributeType", >+ { "foreign.category_code" => "self.categorycode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 borrower_message_preferences >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::BorrowerMessagePreference> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "borrower_message_preferences", >+ "Koha::Schema::Result::BorrowerMessagePreference", >+ { "foreign.categorycode" => "self.categorycode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 borrowers >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "borrowers", >+ "Koha::Schema::Result::Borrower", >+ { "foreign.categorycode" => "self.categorycode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 branch_borrower_circ_rules >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::BranchBorrowerCircRule> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "branch_borrower_circ_rules", >+ "Koha::Schema::Result::BranchBorrowerCircRule", >+ { "foreign.categorycode" => "self.categorycode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 default_borrower_circ_rule >+ >+Type: might_have >+ >+Related object: L<Koha::Schema::Result::DefaultBorrowerCircRule> >+ >+=cut >+ >+__PACKAGE__->might_have( >+ "default_borrower_circ_rule", >+ "Koha::Schema::Result::DefaultBorrowerCircRule", >+ { "foreign.categorycode" => "self.categorycode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BpTckQJaDAxGwrOS9s3tuQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/City.pm b/Koha/Schema/Result/City.pm >new file mode 100644 >index 0000000..921e48d >--- /dev/null >+++ b/Koha/Schema/Result/City.pm >@@ -0,0 +1,75 @@ >+package Koha::Schema::Result::City; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::City >+ >+=cut >+ >+__PACKAGE__->table("cities"); >+ >+=head1 ACCESSORS >+ >+=head2 cityid >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 city_name >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 100 >+ >+=head2 city_state >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 100 >+ >+=head2 city_zipcode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 20 >+ >+=head2 city_country >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 100 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "cityid", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "city_name", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 }, >+ "city_state", >+ { data_type => "varchar", is_nullable => 1, size => 100 }, >+ "city_zipcode", >+ { data_type => "varchar", is_nullable => 1, size => 20 }, >+ "city_country", >+ { data_type => "varchar", is_nullable => 1, size => 100 }, >+); >+__PACKAGE__->set_primary_key("cityid"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rm0FlpZ/rA6OLY0TP/RMTQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/ClassSortRule.pm b/Koha/Schema/Result/ClassSortRule.pm >new file mode 100644 >index 0000000..c32533c >--- /dev/null >+++ b/Koha/Schema/Result/ClassSortRule.pm >@@ -0,0 +1,76 @@ >+package Koha::Schema::Result::ClassSortRule; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::ClassSortRule >+ >+=cut >+ >+__PACKAGE__->table("class_sort_rules"); >+ >+=head1 ACCESSORS >+ >+=head2 class_sort_rule >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=head2 description >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 sort_routine >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 30 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "class_sort_rule", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+ "description", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "sort_routine", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 30 }, >+); >+__PACKAGE__->set_primary_key("class_sort_rule"); >+ >+=head1 RELATIONS >+ >+=head2 class_sources >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::ClassSource> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "class_sources", >+ "Koha::Schema::Result::ClassSource", >+ { "foreign.class_sort_rule" => "self.class_sort_rule" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3JLMzBsuge+hUAqcXVtgzQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/ClassSource.pm b/Koha/Schema/Result/ClassSource.pm >new file mode 100644 >index 0000000..640b03a >--- /dev/null >+++ b/Koha/Schema/Result/ClassSource.pm >@@ -0,0 +1,91 @@ >+package Koha::Schema::Result::ClassSource; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::ClassSource >+ >+=cut >+ >+__PACKAGE__->table("class_sources"); >+ >+=head1 ACCESSORS >+ >+=head2 cn_source >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=head2 description >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 used >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 class_sort_rule >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 10 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "cn_source", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+ "description", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "used", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "class_sort_rule", >+ { >+ data_type => "varchar", >+ default_value => "", >+ is_foreign_key => 1, >+ is_nullable => 0, >+ size => 10, >+ }, >+); >+__PACKAGE__->set_primary_key("cn_source"); >+ >+=head1 RELATIONS >+ >+=head2 class_sort_rule >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::ClassSortRule> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "class_sort_rule", >+ "Koha::Schema::Result::ClassSortRule", >+ { class_sort_rule => "class_sort_rule" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fot5u8I5lS5/W0bHPD0Rpw >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Closure.pm b/Koha/Schema/Result/Closure.pm >new file mode 100644 >index 0000000..22654e6 >--- /dev/null >+++ b/Koha/Schema/Result/Closure.pm >@@ -0,0 +1,79 @@ >+package Koha::Schema::Result::Closure; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Closure >+ >+=cut >+ >+__PACKAGE__->table("closure"); >+ >+=head1 ACCESSORS >+ >+=head2 closureid >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 description >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 branchcode >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 10 >+ >+=head2 title >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 event_start >+ >+ data_type: 'datetime' >+ is_nullable: 1 >+ >+=head2 event_end >+ >+ data_type: 'datetime' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "closureid", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "description", >+ { data_type => "text", is_nullable => 1 }, >+ "branchcode", >+ { data_type => "varchar", is_nullable => 0, size => 10 }, >+ "title", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "event_start", >+ { data_type => "datetime", is_nullable => 1 }, >+ "event_end", >+ { data_type => "datetime", is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("closureid"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yA2qWZ8+Om9n0UAev2wl1Q >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/ClosureRrule.pm b/Koha/Schema/Result/ClosureRrule.pm >new file mode 100644 >index 0000000..f5c8a03 >--- /dev/null >+++ b/Koha/Schema/Result/ClosureRrule.pm >@@ -0,0 +1,69 @@ >+package Koha::Schema::Result::ClosureRrule; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::ClosureRrule >+ >+=cut >+ >+__PACKAGE__->table("closure_rrule"); >+ >+=head1 ACCESSORS >+ >+=head2 closureid >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 recurrence_start >+ >+ data_type: 'datetime' >+ is_nullable: 1 >+ >+=head2 recurrence_end >+ >+ data_type: 'datetime' >+ is_nullable: 1 >+ >+=head2 frequency >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 days_interval >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "closureid", >+ { data_type => "integer", is_nullable => 1 }, >+ "recurrence_start", >+ { data_type => "datetime", is_nullable => 1 }, >+ "recurrence_end", >+ { data_type => "datetime", is_nullable => 1 }, >+ "frequency", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "days_interval", >+ { data_type => "integer", is_nullable => 1 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:g4CMCw0JgKii7mgfHkqThQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Collection.pm b/Koha/Schema/Result/Collection.pm >new file mode 100644 >index 0000000..6761a8a >--- /dev/null >+++ b/Koha/Schema/Result/Collection.pm >@@ -0,0 +1,66 @@ >+package Koha::Schema::Result::Collection; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Collection >+ >+=cut >+ >+__PACKAGE__->table("collections"); >+ >+=head1 ACCESSORS >+ >+=head2 colid >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 coltitle >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 100 >+ >+=head2 coldesc >+ >+ data_type: 'text' >+ is_nullable: 0 >+ >+=head2 colbranchcode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 4 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "colid", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "coltitle", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 }, >+ "coldesc", >+ { data_type => "text", is_nullable => 0 }, >+ "colbranchcode", >+ { data_type => "varchar", is_nullable => 1, size => 4 }, >+); >+__PACKAGE__->set_primary_key("colid"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MCaPTe+sCHOw8R6O+qFRIA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/CollectionTracking.pm b/Koha/Schema/Result/CollectionTracking.pm >new file mode 100644 >index 0000000..3ab741f >--- /dev/null >+++ b/Koha/Schema/Result/CollectionTracking.pm >@@ -0,0 +1,58 @@ >+package Koha::Schema::Result::CollectionTracking; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::CollectionTracking >+ >+=cut >+ >+__PACKAGE__->table("collections_tracking"); >+ >+=head1 ACCESSORS >+ >+=head2 ctid >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 colid >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 itemnumber >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "ctid", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "colid", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "itemnumber", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("ctid"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OV5D03dIIo/pCuRSBPsXsg >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/CreatorBatch.pm b/Koha/Schema/Result/CreatorBatch.pm >new file mode 100644 >index 0000000..9a6ffc8 >--- /dev/null >+++ b/Koha/Schema/Result/CreatorBatch.pm >@@ -0,0 +1,155 @@ >+package Koha::Schema::Result::CreatorBatch; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::CreatorBatch >+ >+=cut >+ >+__PACKAGE__->table("creator_batches"); >+ >+=head1 ACCESSORS >+ >+=head2 label_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 batch_id >+ >+ data_type: 'integer' >+ default_value: 1 >+ is_nullable: 0 >+ >+=head2 item_number >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+=head2 borrower_number >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+=head2 timestamp >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=head2 branch_code >+ >+ data_type: 'varchar' >+ default_value: 'NB' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 10 >+ >+=head2 creator >+ >+ data_type: 'char' >+ default_value: 'Labels' >+ is_nullable: 0 >+ size: 15 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "label_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "batch_id", >+ { data_type => "integer", default_value => 1, is_nullable => 0 }, >+ "item_number", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, >+ "borrower_number", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, >+ "timestamp", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+ "branch_code", >+ { >+ data_type => "varchar", >+ default_value => "NB", >+ is_foreign_key => 1, >+ is_nullable => 0, >+ size => 10, >+ }, >+ "creator", >+ { >+ data_type => "char", >+ default_value => "Labels", >+ is_nullable => 0, >+ size => 15, >+ }, >+); >+__PACKAGE__->set_primary_key("label_id"); >+ >+=head1 RELATIONS >+ >+=head2 borrower_number >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "borrower_number", >+ "Koha::Schema::Result::Borrower", >+ { borrowernumber => "borrower_number" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 branch_code >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Branch> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "branch_code", >+ "Koha::Schema::Result::Branch", >+ { branchcode => "branch_code" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 item_number >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Item> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "item_number", >+ "Koha::Schema::Result::Item", >+ { itemnumber => "item_number" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ei9dbdCUspCrRrhIBHQG6w >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/CreatorImage.pm b/Koha/Schema/Result/CreatorImage.pm >new file mode 100644 >index 0000000..3e90c89 >--- /dev/null >+++ b/Koha/Schema/Result/CreatorImage.pm >@@ -0,0 +1,64 @@ >+package Koha::Schema::Result::CreatorImage; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::CreatorImage >+ >+=cut >+ >+__PACKAGE__->table("creator_images"); >+ >+=head1 ACCESSORS >+ >+=head2 image_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 imagefile >+ >+ data_type: 'mediumblob' >+ is_nullable: 1 >+ >+=head2 image_name >+ >+ data_type: 'char' >+ default_value: 'DEFAULT' >+ is_nullable: 0 >+ size: 20 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "image_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "imagefile", >+ { data_type => "mediumblob", is_nullable => 1 }, >+ "image_name", >+ { >+ data_type => "char", >+ default_value => "DEFAULT", >+ is_nullable => 0, >+ size => 20, >+ }, >+); >+__PACKAGE__->set_primary_key("image_id"); >+__PACKAGE__->add_unique_constraint("image_name_index", ["image_name"]); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5s/Ejf4/8x2uRb1aDvLhqA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/CreatorLayout.pm b/Koha/Schema/Result/CreatorLayout.pm >new file mode 100644 >index 0000000..f044fac >--- /dev/null >+++ b/Koha/Schema/Result/CreatorLayout.pm >@@ -0,0 +1,173 @@ >+package Koha::Schema::Result::CreatorLayout; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::CreatorLayout >+ >+=cut >+ >+__PACKAGE__->table("creator_layouts"); >+ >+=head1 ACCESSORS >+ >+=head2 layout_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 barcode_type >+ >+ data_type: 'char' >+ default_value: 'CODE39' >+ is_nullable: 0 >+ size: 100 >+ >+=head2 start_label >+ >+ data_type: 'integer' >+ default_value: 1 >+ is_nullable: 0 >+ >+=head2 printing_type >+ >+ data_type: 'char' >+ default_value: 'BAR' >+ is_nullable: 0 >+ size: 32 >+ >+=head2 layout_name >+ >+ data_type: 'char' >+ default_value: 'DEFAULT' >+ is_nullable: 0 >+ size: 20 >+ >+=head2 guidebox >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 font >+ >+ data_type: 'char' >+ default_value: 'TR' >+ is_nullable: 0 >+ size: 10 >+ >+=head2 font_size >+ >+ data_type: 'integer' >+ default_value: 10 >+ is_nullable: 0 >+ >+=head2 units >+ >+ data_type: 'char' >+ default_value: 'POINT' >+ is_nullable: 0 >+ size: 20 >+ >+=head2 callnum_split >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 text_justify >+ >+ data_type: 'char' >+ default_value: 'L' >+ is_nullable: 0 >+ size: 1 >+ >+=head2 format_string >+ >+ data_type: 'varchar' >+ default_value: 'barcode' >+ is_nullable: 0 >+ size: 210 >+ >+=head2 layout_xml >+ >+ data_type: 'text' >+ is_nullable: 0 >+ >+=head2 creator >+ >+ data_type: 'char' >+ default_value: 'Labels' >+ is_nullable: 0 >+ size: 15 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "layout_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "barcode_type", >+ { >+ data_type => "char", >+ default_value => "CODE39", >+ is_nullable => 0, >+ size => 100, >+ }, >+ "start_label", >+ { data_type => "integer", default_value => 1, is_nullable => 0 }, >+ "printing_type", >+ { data_type => "char", default_value => "BAR", is_nullable => 0, size => 32 }, >+ "layout_name", >+ { >+ data_type => "char", >+ default_value => "DEFAULT", >+ is_nullable => 0, >+ size => 20, >+ }, >+ "guidebox", >+ { data_type => "integer", default_value => 0, is_nullable => 1 }, >+ "font", >+ { data_type => "char", default_value => "TR", is_nullable => 0, size => 10 }, >+ "font_size", >+ { data_type => "integer", default_value => 10, is_nullable => 0 }, >+ "units", >+ { data_type => "char", default_value => "POINT", is_nullable => 0, size => 20 }, >+ "callnum_split", >+ { data_type => "integer", default_value => 0, is_nullable => 1 }, >+ "text_justify", >+ { data_type => "char", default_value => "L", is_nullable => 0, size => 1 }, >+ "format_string", >+ { >+ data_type => "varchar", >+ default_value => "barcode", >+ is_nullable => 0, >+ size => 210, >+ }, >+ "layout_xml", >+ { data_type => "text", is_nullable => 0 }, >+ "creator", >+ { >+ data_type => "char", >+ default_value => "Labels", >+ is_nullable => 0, >+ size => 15, >+ }, >+); >+__PACKAGE__->set_primary_key("layout_id"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NARlAl2b7wt4a8MmUr0giw >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/CreatorTemplate.pm b/Koha/Schema/Result/CreatorTemplate.pm >new file mode 100644 >index 0000000..67943ae >--- /dev/null >+++ b/Koha/Schema/Result/CreatorTemplate.pm >@@ -0,0 +1,196 @@ >+package Koha::Schema::Result::CreatorTemplate; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::CreatorTemplate >+ >+=cut >+ >+__PACKAGE__->table("creator_templates"); >+ >+=head1 ACCESSORS >+ >+=head2 template_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 profile_id >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 template_code >+ >+ data_type: 'char' >+ default_value: 'DEFAULT TEMPLATE' >+ is_nullable: 0 >+ size: 100 >+ >+=head2 template_desc >+ >+ data_type: 'char' >+ default_value: 'Default description' >+ is_nullable: 0 >+ size: 100 >+ >+=head2 page_width >+ >+ data_type: 'float' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 page_height >+ >+ data_type: 'float' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 label_width >+ >+ data_type: 'float' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 label_height >+ >+ data_type: 'float' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 top_text_margin >+ >+ data_type: 'float' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 left_text_margin >+ >+ data_type: 'float' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 top_margin >+ >+ data_type: 'float' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 left_margin >+ >+ data_type: 'float' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 cols >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 rows >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 col_gap >+ >+ data_type: 'float' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 row_gap >+ >+ data_type: 'float' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 units >+ >+ data_type: 'char' >+ default_value: 'POINT' >+ is_nullable: 0 >+ size: 20 >+ >+=head2 creator >+ >+ data_type: 'char' >+ default_value: 'Labels' >+ is_nullable: 0 >+ size: 15 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "template_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "profile_id", >+ { data_type => "integer", is_nullable => 1 }, >+ "template_code", >+ { >+ data_type => "char", >+ default_value => "DEFAULT TEMPLATE", >+ is_nullable => 0, >+ size => 100, >+ }, >+ "template_desc", >+ { >+ data_type => "char", >+ default_value => "Default description", >+ is_nullable => 0, >+ size => 100, >+ }, >+ "page_width", >+ { data_type => "float", default_value => 0, is_nullable => 0 }, >+ "page_height", >+ { data_type => "float", default_value => 0, is_nullable => 0 }, >+ "label_width", >+ { data_type => "float", default_value => 0, is_nullable => 0 }, >+ "label_height", >+ { data_type => "float", default_value => 0, is_nullable => 0 }, >+ "top_text_margin", >+ { data_type => "float", default_value => 0, is_nullable => 0 }, >+ "left_text_margin", >+ { data_type => "float", default_value => 0, is_nullable => 0 }, >+ "top_margin", >+ { data_type => "float", default_value => 0, is_nullable => 0 }, >+ "left_margin", >+ { data_type => "float", default_value => 0, is_nullable => 0 }, >+ "cols", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "rows", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "col_gap", >+ { data_type => "float", default_value => 0, is_nullable => 0 }, >+ "row_gap", >+ { data_type => "float", default_value => 0, is_nullable => 0 }, >+ "units", >+ { data_type => "char", default_value => "POINT", is_nullable => 0, size => 20 }, >+ "creator", >+ { >+ data_type => "char", >+ default_value => "Labels", >+ is_nullable => 0, >+ size => 15, >+ }, >+); >+__PACKAGE__->set_primary_key("template_id"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7+6xi7FTvNEbXqNlPfzQSw >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Currency.pm b/Koha/Schema/Result/Currency.pm >new file mode 100644 >index 0000000..a09337b >--- /dev/null >+++ b/Koha/Schema/Result/Currency.pm >@@ -0,0 +1,110 @@ >+package Koha::Schema::Result::Currency; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Currency >+ >+=cut >+ >+__PACKAGE__->table("currency"); >+ >+=head1 ACCESSORS >+ >+=head2 currency >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=head2 symbol >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 5 >+ >+=head2 timestamp >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=head2 rate >+ >+ data_type: 'float' >+ is_nullable: 1 >+ size: [15,5] >+ >+=head2 active >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "currency", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+ "symbol", >+ { data_type => "varchar", is_nullable => 1, size => 5 }, >+ "timestamp", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+ "rate", >+ { data_type => "float", is_nullable => 1, size => [15, 5] }, >+ "active", >+ { data_type => "tinyint", is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("currency"); >+ >+=head1 RELATIONS >+ >+=head2 aqbooksellers_listprices >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Aqbookseller> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "aqbooksellers_listprices", >+ "Koha::Schema::Result::Aqbookseller", >+ { "foreign.listprice" => "self.currency" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 aqbooksellers_invoiceprices >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Aqbookseller> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "aqbooksellers_invoiceprices", >+ "Koha::Schema::Result::Aqbookseller", >+ { "foreign.invoiceprice" => "self.currency" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6SWDTY33KjtpW71Elgs69g >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/DefaultBorrowerCircRule.pm b/Koha/Schema/Result/DefaultBorrowerCircRule.pm >new file mode 100644 >index 0000000..00f9266 >--- /dev/null >+++ b/Koha/Schema/Result/DefaultBorrowerCircRule.pm >@@ -0,0 +1,67 @@ >+package Koha::Schema::Result::DefaultBorrowerCircRule; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::DefaultBorrowerCircRule >+ >+=cut >+ >+__PACKAGE__->table("default_borrower_circ_rules"); >+ >+=head1 ACCESSORS >+ >+=head2 categorycode >+ >+ data_type: 'varchar' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 10 >+ >+=head2 maxissueqty >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "categorycode", >+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, >+ "maxissueqty", >+ { data_type => "integer", is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("categorycode"); >+ >+=head1 RELATIONS >+ >+=head2 categorycode >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Category> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "categorycode", >+ "Koha::Schema::Result::Category", >+ { categorycode => "categorycode" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Z6tiOK5+uLufdewEsUrAEQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/DefaultBranchCircRule.pm b/Koha/Schema/Result/DefaultBranchCircRule.pm >new file mode 100644 >index 0000000..7457fb4 >--- /dev/null >+++ b/Koha/Schema/Result/DefaultBranchCircRule.pm >@@ -0,0 +1,82 @@ >+package Koha::Schema::Result::DefaultBranchCircRule; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::DefaultBranchCircRule >+ >+=cut >+ >+__PACKAGE__->table("default_branch_circ_rules"); >+ >+=head1 ACCESSORS >+ >+=head2 branchcode >+ >+ data_type: 'varchar' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 10 >+ >+=head2 maxissueqty >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 holdallowed >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 returnbranch >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 15 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "branchcode", >+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, >+ "maxissueqty", >+ { data_type => "integer", is_nullable => 1 }, >+ "holdallowed", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "returnbranch", >+ { data_type => "varchar", is_nullable => 1, size => 15 }, >+); >+__PACKAGE__->set_primary_key("branchcode"); >+ >+=head1 RELATIONS >+ >+=head2 branchcode >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Branch> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "branchcode", >+ "Koha::Schema::Result::Branch", >+ { branchcode => "branchcode" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yCrCqkdVhV80/WtxZPK6Kw >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/DefaultBranchItemRule.pm b/Koha/Schema/Result/DefaultBranchItemRule.pm >new file mode 100644 >index 0000000..1df7bf9 >--- /dev/null >+++ b/Koha/Schema/Result/DefaultBranchItemRule.pm >@@ -0,0 +1,75 @@ >+package Koha::Schema::Result::DefaultBranchItemRule; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::DefaultBranchItemRule >+ >+=cut >+ >+__PACKAGE__->table("default_branch_item_rules"); >+ >+=head1 ACCESSORS >+ >+=head2 itemtype >+ >+ data_type: 'varchar' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 10 >+ >+=head2 holdallowed >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 returnbranch >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 15 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "itemtype", >+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, >+ "holdallowed", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "returnbranch", >+ { data_type => "varchar", is_nullable => 1, size => 15 }, >+); >+__PACKAGE__->set_primary_key("itemtype"); >+ >+=head1 RELATIONS >+ >+=head2 itemtype >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Itemtype> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "itemtype", >+ "Koha::Schema::Result::Itemtype", >+ { itemtype => "itemtype" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:N5e8mgI8+T/E4CchVMYIoQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/DefaultCircRule.pm b/Koha/Schema/Result/DefaultCircRule.pm >new file mode 100644 >index 0000000..f3b09ff >--- /dev/null >+++ b/Koha/Schema/Result/DefaultCircRule.pm >@@ -0,0 +1,70 @@ >+package Koha::Schema::Result::DefaultCircRule; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::DefaultCircRule >+ >+=cut >+ >+__PACKAGE__->table("default_circ_rules"); >+ >+=head1 ACCESSORS >+ >+=head2 singleton >+ >+ data_type: 'enum' >+ default_value: 'singleton' >+ extra: {list => ["singleton"]} >+ is_nullable: 0 >+ >+=head2 maxissueqty >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 holdallowed >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 returnbranch >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 15 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "singleton", >+ { >+ data_type => "enum", >+ default_value => "singleton", >+ extra => { list => ["singleton"] }, >+ is_nullable => 0, >+ }, >+ "maxissueqty", >+ { data_type => "integer", is_nullable => 1 }, >+ "holdallowed", >+ { data_type => "integer", is_nullable => 1 }, >+ "returnbranch", >+ { data_type => "varchar", is_nullable => 1, size => 15 }, >+); >+__PACKAGE__->set_primary_key("singleton"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PSMIlns1Q2e5Kun60SzKYg >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Deletedbiblio.pm b/Koha/Schema/Result/Deletedbiblio.pm >new file mode 100644 >index 0000000..9bdcd69 >--- /dev/null >+++ b/Koha/Schema/Result/Deletedbiblio.pm >@@ -0,0 +1,126 @@ >+package Koha::Schema::Result::Deletedbiblio; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Deletedbiblio >+ >+=cut >+ >+__PACKAGE__->table("deletedbiblio"); >+ >+=head1 ACCESSORS >+ >+=head2 biblionumber >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 frameworkcode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 4 >+ >+=head2 author >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 title >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 unititle >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 notes >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 serial >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 seriestitle >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 copyrightdate >+ >+ data_type: 'smallint' >+ is_nullable: 1 >+ >+=head2 timestamp >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=head2 datecreated >+ >+ data_type: 'date' >+ is_nullable: 0 >+ >+=head2 abstract >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "biblionumber", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "frameworkcode", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 }, >+ "author", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "title", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "unititle", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "notes", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "serial", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "seriestitle", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "copyrightdate", >+ { data_type => "smallint", is_nullable => 1 }, >+ "timestamp", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+ "datecreated", >+ { data_type => "date", is_nullable => 0 }, >+ "abstract", >+ { data_type => "mediumtext", is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("biblionumber"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/x/M9xGCkN5ClHrk1GUELw >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Deletedbiblioitem.pm b/Koha/Schema/Result/Deletedbiblioitem.pm >new file mode 100644 >index 0000000..04f5351 >--- /dev/null >+++ b/Koha/Schema/Result/Deletedbiblioitem.pm >@@ -0,0 +1,296 @@ >+package Koha::Schema::Result::Deletedbiblioitem; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Deletedbiblioitem >+ >+=cut >+ >+__PACKAGE__->table("deletedbiblioitems"); >+ >+=head1 ACCESSORS >+ >+=head2 biblioitemnumber >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 biblionumber >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 volume >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 number >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 itemtype >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 isbn >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 30 >+ >+=head2 issn >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 9 >+ >+=head2 ean >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 13 >+ >+=head2 publicationyear >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 publishercode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 volumedate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 volumedesc >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 collectiontitle >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 collectionissn >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 collectionvolume >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 editionstatement >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 editionresponsibility >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 timestamp >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=head2 illus >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 pages >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 notes >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 size >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 place >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 lccn >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 25 >+ >+=head2 marc >+ >+ data_type: 'longblob' >+ is_nullable: 1 >+ >+=head2 url >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 cn_source >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 cn_class >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 30 >+ >+=head2 cn_item >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 cn_suffix >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 cn_sort >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 30 >+ >+=head2 agerestriction >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 totalissues >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 marcxml >+ >+ data_type: 'longtext' >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "biblioitemnumber", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "biblionumber", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "volume", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "number", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "itemtype", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "isbn", >+ { data_type => "varchar", is_nullable => 1, size => 30 }, >+ "issn", >+ { data_type => "varchar", is_nullable => 1, size => 9 }, >+ "ean", >+ { data_type => "varchar", is_nullable => 1, size => 13 }, >+ "publicationyear", >+ { data_type => "text", is_nullable => 1 }, >+ "publishercode", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "volumedate", >+ { data_type => "date", is_nullable => 1 }, >+ "volumedesc", >+ { data_type => "text", is_nullable => 1 }, >+ "collectiontitle", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "collectionissn", >+ { data_type => "text", is_nullable => 1 }, >+ "collectionvolume", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "editionstatement", >+ { data_type => "text", is_nullable => 1 }, >+ "editionresponsibility", >+ { data_type => "text", is_nullable => 1 }, >+ "timestamp", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+ "illus", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "pages", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "notes", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "size", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "place", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "lccn", >+ { data_type => "varchar", is_nullable => 1, size => 25 }, >+ "marc", >+ { data_type => "longblob", is_nullable => 1 }, >+ "url", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "cn_source", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "cn_class", >+ { data_type => "varchar", is_nullable => 1, size => 30 }, >+ "cn_item", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "cn_suffix", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "cn_sort", >+ { data_type => "varchar", is_nullable => 1, size => 30 }, >+ "agerestriction", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "totalissues", >+ { data_type => "integer", is_nullable => 1 }, >+ "marcxml", >+ { data_type => "longtext", is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("biblioitemnumber"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+7zlVHfXJbuk7GfMYsooXw >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Deletedborrower.pm b/Koha/Schema/Result/Deletedborrower.pm >new file mode 100644 >index 0000000..8d430cb >--- /dev/null >+++ b/Koha/Schema/Result/Deletedborrower.pm >@@ -0,0 +1,533 @@ >+package Koha::Schema::Result::Deletedborrower; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Deletedborrower >+ >+=cut >+ >+__PACKAGE__->table("deletedborrowers"); >+ >+=head1 ACCESSORS >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 cardnumber >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 16 >+ >+=head2 surname >+ >+ data_type: 'mediumtext' >+ is_nullable: 0 >+ >+=head2 firstname >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 title >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 othernames >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 initials >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 streetnumber >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 streettype >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 50 >+ >+=head2 address >+ >+ data_type: 'mediumtext' >+ is_nullable: 0 >+ >+=head2 address2 >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 city >+ >+ data_type: 'mediumtext' >+ is_nullable: 0 >+ >+=head2 state >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 zipcode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 25 >+ >+=head2 country >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 email >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 phone >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 mobile >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 50 >+ >+=head2 fax >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 emailpro >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 phonepro >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 b_streetnumber >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 b_streettype >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 50 >+ >+=head2 b_address >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 100 >+ >+=head2 b_address2 >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 b_city >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 b_state >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 b_zipcode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 25 >+ >+=head2 b_country >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 b_email >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 b_phone >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 dateofbirth >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 branchcode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=head2 categorycode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 dateenrolled >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 dateexpiry >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 gonenoaddress >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 lost >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 debarred >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 debarredcomment >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 contactname >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 contactfirstname >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 contacttitle >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 guarantorid >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 borrowernotes >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 relationship >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 100 >+ >+=head2 ethnicity >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 50 >+ >+=head2 ethnotes >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 sex >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 1 >+ >+=head2 password >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 30 >+ >+=head2 flags >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 userid >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 30 >+ >+=head2 opacnote >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 contactnote >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 sort1 >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 80 >+ >+=head2 sort2 >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 80 >+ >+=head2 altcontactfirstname >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 altcontactsurname >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 altcontactaddress1 >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 altcontactaddress2 >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 altcontactaddress3 >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 altcontactstate >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 altcontactzipcode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 50 >+ >+=head2 altcontactcountry >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 altcontactphone >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 50 >+ >+=head2 smsalertnumber >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 50 >+ >+=head2 privacy >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "borrowernumber", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "cardnumber", >+ { data_type => "varchar", is_nullable => 1, size => 16 }, >+ "surname", >+ { data_type => "mediumtext", is_nullable => 0 }, >+ "firstname", >+ { data_type => "text", is_nullable => 1 }, >+ "title", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "othernames", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "initials", >+ { data_type => "text", is_nullable => 1 }, >+ "streetnumber", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "streettype", >+ { data_type => "varchar", is_nullable => 1, size => 50 }, >+ "address", >+ { data_type => "mediumtext", is_nullable => 0 }, >+ "address2", >+ { data_type => "text", is_nullable => 1 }, >+ "city", >+ { data_type => "mediumtext", is_nullable => 0 }, >+ "state", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "zipcode", >+ { data_type => "varchar", is_nullable => 1, size => 25 }, >+ "country", >+ { data_type => "text", is_nullable => 1 }, >+ "email", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "phone", >+ { data_type => "text", is_nullable => 1 }, >+ "mobile", >+ { data_type => "varchar", is_nullable => 1, size => 50 }, >+ "fax", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "emailpro", >+ { data_type => "text", is_nullable => 1 }, >+ "phonepro", >+ { data_type => "text", is_nullable => 1 }, >+ "b_streetnumber", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "b_streettype", >+ { data_type => "varchar", is_nullable => 1, size => 50 }, >+ "b_address", >+ { data_type => "varchar", is_nullable => 1, size => 100 }, >+ "b_address2", >+ { data_type => "text", is_nullable => 1 }, >+ "b_city", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "b_state", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "b_zipcode", >+ { data_type => "varchar", is_nullable => 1, size => 25 }, >+ "b_country", >+ { data_type => "text", is_nullable => 1 }, >+ "b_email", >+ { data_type => "text", is_nullable => 1 }, >+ "b_phone", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "dateofbirth", >+ { data_type => "date", is_nullable => 1 }, >+ "branchcode", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+ "categorycode", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "dateenrolled", >+ { data_type => "date", is_nullable => 1 }, >+ "dateexpiry", >+ { data_type => "date", is_nullable => 1 }, >+ "gonenoaddress", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "lost", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "debarred", >+ { data_type => "date", is_nullable => 1 }, >+ "debarredcomment", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "contactname", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "contactfirstname", >+ { data_type => "text", is_nullable => 1 }, >+ "contacttitle", >+ { data_type => "text", is_nullable => 1 }, >+ "guarantorid", >+ { data_type => "integer", is_nullable => 1 }, >+ "borrowernotes", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "relationship", >+ { data_type => "varchar", is_nullable => 1, size => 100 }, >+ "ethnicity", >+ { data_type => "varchar", is_nullable => 1, size => 50 }, >+ "ethnotes", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "sex", >+ { data_type => "varchar", is_nullable => 1, size => 1 }, >+ "password", >+ { data_type => "varchar", is_nullable => 1, size => 30 }, >+ "flags", >+ { data_type => "integer", is_nullable => 1 }, >+ "userid", >+ { data_type => "varchar", is_nullable => 1, size => 30 }, >+ "opacnote", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "contactnote", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "sort1", >+ { data_type => "varchar", is_nullable => 1, size => 80 }, >+ "sort2", >+ { data_type => "varchar", is_nullable => 1, size => 80 }, >+ "altcontactfirstname", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "altcontactsurname", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "altcontactaddress1", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "altcontactaddress2", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "altcontactaddress3", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "altcontactstate", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "altcontactzipcode", >+ { data_type => "varchar", is_nullable => 1, size => 50 }, >+ "altcontactcountry", >+ { data_type => "text", is_nullable => 1 }, >+ "altcontactphone", >+ { data_type => "varchar", is_nullable => 1, size => 50 }, >+ "smsalertnumber", >+ { data_type => "varchar", is_nullable => 1, size => 50 }, >+ "privacy", >+ { data_type => "integer", is_nullable => 1 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bFluvx9OwGTzEMpQZPBuKQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Deleteditem.pm b/Koha/Schema/Result/Deleteditem.pm >new file mode 100644 >index 0000000..a37f0c3 >--- /dev/null >+++ b/Koha/Schema/Result/Deleteditem.pm >@@ -0,0 +1,342 @@ >+package Koha::Schema::Result::Deleteditem; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Deleteditem >+ >+=cut >+ >+__PACKAGE__->table("deleteditems"); >+ >+=head1 ACCESSORS >+ >+=head2 itemnumber >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 biblionumber >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 biblioitemnumber >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 barcode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 20 >+ >+=head2 dateaccessioned >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 booksellerid >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 homebranch >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 price >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [8,2] >+ >+=head2 replacementprice >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [8,2] >+ >+=head2 replacementpricedate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 datelastborrowed >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 datelastseen >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 stack >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 notforloan >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 damaged >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 itemlost >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 wthdrawn >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 itemcallnumber >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 issues >+ >+ data_type: 'smallint' >+ is_nullable: 1 >+ >+=head2 renewals >+ >+ data_type: 'smallint' >+ is_nullable: 1 >+ >+=head2 reserves >+ >+ data_type: 'smallint' >+ is_nullable: 1 >+ >+=head2 restricted >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 itemnotes >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 holdingbranch >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 paidfor >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 timestamp >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=head2 location >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 80 >+ >+=head2 permanent_location >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 80 >+ >+=head2 onloan >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 cn_source >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 cn_sort >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 30 >+ >+=head2 ccode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 materials >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 uri >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 itype >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 more_subfields_xml >+ >+ data_type: 'longtext' >+ is_nullable: 1 >+ >+=head2 enumchron >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 copynumber >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 32 >+ >+=head2 stocknumber >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 32 >+ >+=head2 marc >+ >+ data_type: 'longblob' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "itemnumber", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "biblionumber", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "biblioitemnumber", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "barcode", >+ { data_type => "varchar", is_nullable => 1, size => 20 }, >+ "dateaccessioned", >+ { data_type => "date", is_nullable => 1 }, >+ "booksellerid", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "homebranch", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "price", >+ { data_type => "decimal", is_nullable => 1, size => [8, 2] }, >+ "replacementprice", >+ { data_type => "decimal", is_nullable => 1, size => [8, 2] }, >+ "replacementpricedate", >+ { data_type => "date", is_nullable => 1 }, >+ "datelastborrowed", >+ { data_type => "date", is_nullable => 1 }, >+ "datelastseen", >+ { data_type => "date", is_nullable => 1 }, >+ "stack", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "notforloan", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "damaged", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "itemlost", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "wthdrawn", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "itemcallnumber", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "issues", >+ { data_type => "smallint", is_nullable => 1 }, >+ "renewals", >+ { data_type => "smallint", is_nullable => 1 }, >+ "reserves", >+ { data_type => "smallint", is_nullable => 1 }, >+ "restricted", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "itemnotes", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "holdingbranch", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "paidfor", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "timestamp", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+ "location", >+ { data_type => "varchar", is_nullable => 1, size => 80 }, >+ "permanent_location", >+ { data_type => "varchar", is_nullable => 1, size => 80 }, >+ "onloan", >+ { data_type => "date", is_nullable => 1 }, >+ "cn_source", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "cn_sort", >+ { data_type => "varchar", is_nullable => 1, size => 30 }, >+ "ccode", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "materials", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "uri", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "itype", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "more_subfields_xml", >+ { data_type => "longtext", is_nullable => 1 }, >+ "enumchron", >+ { data_type => "text", is_nullable => 1 }, >+ "copynumber", >+ { data_type => "varchar", is_nullable => 1, size => 32 }, >+ "stocknumber", >+ { data_type => "varchar", is_nullable => 1, size => 32 }, >+ "marc", >+ { data_type => "longblob", is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("itemnumber"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:71VE1YzdzK7dAtGTVKeCkg >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Ethnicity.pm b/Koha/Schema/Result/Ethnicity.pm >new file mode 100644 >index 0000000..a925c4c >--- /dev/null >+++ b/Koha/Schema/Result/Ethnicity.pm >@@ -0,0 +1,51 @@ >+package Koha::Schema::Result::Ethnicity; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Ethnicity >+ >+=cut >+ >+__PACKAGE__->table("ethnicity"); >+ >+=head1 ACCESSORS >+ >+=head2 code >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=head2 name >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "code", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+ "name", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+); >+__PACKAGE__->set_primary_key("code"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:H+zE5eEx/ClCKhvOgCCQzg >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/ExportFormat.pm b/Koha/Schema/Result/ExportFormat.pm >new file mode 100644 >index 0000000..ed21a64 >--- /dev/null >+++ b/Koha/Schema/Result/ExportFormat.pm >@@ -0,0 +1,96 @@ >+package Koha::Schema::Result::ExportFormat; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::ExportFormat >+ >+=cut >+ >+__PACKAGE__->table("export_format"); >+ >+=head1 ACCESSORS >+ >+=head2 export_format_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 profile >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 255 >+ >+=head2 description >+ >+ data_type: 'mediumtext' >+ is_nullable: 0 >+ >+=head2 marcfields >+ >+ data_type: 'mediumtext' >+ is_nullable: 0 >+ >+=head2 csv_separator >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 2 >+ >+=head2 field_separator >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 2 >+ >+=head2 subfield_separator >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 2 >+ >+=head2 encoding >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 255 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "export_format_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "profile", >+ { data_type => "varchar", is_nullable => 0, size => 255 }, >+ "description", >+ { data_type => "mediumtext", is_nullable => 0 }, >+ "marcfields", >+ { data_type => "mediumtext", is_nullable => 0 }, >+ "csv_separator", >+ { data_type => "varchar", is_nullable => 0, size => 2 }, >+ "field_separator", >+ { data_type => "varchar", is_nullable => 0, size => 2 }, >+ "subfield_separator", >+ { data_type => "varchar", is_nullable => 0, size => 2 }, >+ "encoding", >+ { data_type => "varchar", is_nullable => 0, size => 255 }, >+); >+__PACKAGE__->set_primary_key("export_format_id"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bUCNW2Ek6JxBjlVcO1TQ1g >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Fieldmapping.pm b/Koha/Schema/Result/Fieldmapping.pm >new file mode 100644 >index 0000000..684f755 >--- /dev/null >+++ b/Koha/Schema/Result/Fieldmapping.pm >@@ -0,0 +1,75 @@ >+package Koha::Schema::Result::Fieldmapping; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Fieldmapping >+ >+=cut >+ >+__PACKAGE__->table("fieldmapping"); >+ >+=head1 ACCESSORS >+ >+=head2 id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 field >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 255 >+ >+=head2 frameworkcode >+ >+ data_type: 'char' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 4 >+ >+=head2 fieldcode >+ >+ data_type: 'char' >+ is_nullable: 0 >+ size: 3 >+ >+=head2 subfieldcode >+ >+ data_type: 'char' >+ is_nullable: 0 >+ size: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "field", >+ { data_type => "varchar", is_nullable => 0, size => 255 }, >+ "frameworkcode", >+ { data_type => "char", default_value => "", is_nullable => 0, size => 4 }, >+ "fieldcode", >+ { data_type => "char", is_nullable => 0, size => 3 }, >+ "subfieldcode", >+ { data_type => "char", is_nullable => 0, size => 1 }, >+); >+__PACKAGE__->set_primary_key("id"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gvtMvCtkyoKYhiEqLmhFEg >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/HoldFillTarget.pm b/Koha/Schema/Result/HoldFillTarget.pm >new file mode 100644 >index 0000000..6958cb6 >--- /dev/null >+++ b/Koha/Schema/Result/HoldFillTarget.pm >@@ -0,0 +1,137 @@ >+package Koha::Schema::Result::HoldFillTarget; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::HoldFillTarget >+ >+=cut >+ >+__PACKAGE__->table("hold_fill_targets"); >+ >+=head1 ACCESSORS >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 biblionumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 itemnumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 source_branchcode >+ >+ data_type: 'varchar' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ size: 10 >+ >+=head2 item_level_request >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "borrowernumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "biblionumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "itemnumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "source_branchcode", >+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, >+ "item_level_request", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("itemnumber"); >+ >+=head1 RELATIONS >+ >+=head2 borrowernumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "borrowernumber", >+ "Koha::Schema::Result::Borrower", >+ { borrowernumber => "borrowernumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 biblionumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Biblio> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "biblionumber", >+ "Koha::Schema::Result::Biblio", >+ { biblionumber => "biblionumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 itemnumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Item> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "itemnumber", >+ "Koha::Schema::Result::Item", >+ { itemnumber => "itemnumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 source_branchcode >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Branch> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "source_branchcode", >+ "Koha::Schema::Result::Branch", >+ { branchcode => "source_branchcode" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/h3AEVRMJgs51+fyRzpLaQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/ImportAuth.pm b/Koha/Schema/Result/ImportAuth.pm >new file mode 100644 >index 0000000..e8b6a84 >--- /dev/null >+++ b/Koha/Schema/Result/ImportAuth.pm >@@ -0,0 +1,89 @@ >+package Koha::Schema::Result::ImportAuth; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::ImportAuth >+ >+=cut >+ >+__PACKAGE__->table("import_auths"); >+ >+=head1 ACCESSORS >+ >+=head2 import_record_id >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 matched_authid >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 control_number >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 25 >+ >+=head2 authorized_heading >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 128 >+ >+=head2 original_source >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 25 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "import_record_id", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "matched_authid", >+ { data_type => "integer", is_nullable => 1 }, >+ "control_number", >+ { data_type => "varchar", is_nullable => 1, size => 25 }, >+ "authorized_heading", >+ { data_type => "varchar", is_nullable => 1, size => 128 }, >+ "original_source", >+ { data_type => "varchar", is_nullable => 1, size => 25 }, >+); >+ >+=head1 RELATIONS >+ >+=head2 import_record >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::ImportRecord> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "import_record", >+ "Koha::Schema::Result::ImportRecord", >+ { import_record_id => "import_record_id" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KS/c5gOeZK0p8UY5mXRqlQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/ImportBatch.pm b/Koha/Schema/Result/ImportBatch.pm >new file mode 100644 >index 0000000..2ccec3e >--- /dev/null >+++ b/Koha/Schema/Result/ImportBatch.pm >@@ -0,0 +1,225 @@ >+package Koha::Schema::Result::ImportBatch; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::ImportBatch >+ >+=cut >+ >+__PACKAGE__->table("import_batches"); >+ >+=head1 ACCESSORS >+ >+=head2 import_batch_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 matcher_id >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 template_id >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 branchcode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 num_records >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 num_items >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 upload_timestamp >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=head2 overlay_action >+ >+ data_type: 'enum' >+ default_value: 'create_new' >+ extra: {list => ["replace","create_new","use_template","ignore"]} >+ is_nullable: 0 >+ >+=head2 nomatch_action >+ >+ data_type: 'enum' >+ default_value: 'create_new' >+ extra: {list => ["create_new","ignore"]} >+ is_nullable: 0 >+ >+=head2 item_action >+ >+ data_type: 'enum' >+ default_value: 'always_add' >+ extra: {list => ["always_add","add_only_for_matches","add_only_for_new","ignore"]} >+ is_nullable: 0 >+ >+=head2 import_status >+ >+ data_type: 'enum' >+ default_value: 'staging' >+ extra: {list => ["staging","staged","importing","imported","reverting","reverted","cleaned"]} >+ is_nullable: 0 >+ >+=head2 batch_type >+ >+ data_type: 'enum' >+ default_value: 'batch' >+ extra: {list => ["batch","z3950","webservice"]} >+ is_nullable: 0 >+ >+=head2 file_name >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 100 >+ >+=head2 comments >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 record_type >+ >+ data_type: 'enum' >+ default_value: 'biblio' >+ extra: {list => ["biblio","auth","holdings"]} >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "import_batch_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "matcher_id", >+ { data_type => "integer", is_nullable => 1 }, >+ "template_id", >+ { data_type => "integer", is_nullable => 1 }, >+ "branchcode", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "num_records", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "num_items", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "upload_timestamp", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+ "overlay_action", >+ { >+ data_type => "enum", >+ default_value => "create_new", >+ extra => { list => ["replace", "create_new", "use_template", "ignore"] }, >+ is_nullable => 0, >+ }, >+ "nomatch_action", >+ { >+ data_type => "enum", >+ default_value => "create_new", >+ extra => { list => ["create_new", "ignore"] }, >+ is_nullable => 0, >+ }, >+ "item_action", >+ { >+ data_type => "enum", >+ default_value => "always_add", >+ extra => { >+ list => [ >+ "always_add", >+ "add_only_for_matches", >+ "add_only_for_new", >+ "ignore", >+ ], >+ }, >+ is_nullable => 0, >+ }, >+ "import_status", >+ { >+ data_type => "enum", >+ default_value => "staging", >+ extra => { >+ list => [ >+ "staging", >+ "staged", >+ "importing", >+ "imported", >+ "reverting", >+ "reverted", >+ "cleaned", >+ ], >+ }, >+ is_nullable => 0, >+ }, >+ "batch_type", >+ { >+ data_type => "enum", >+ default_value => "batch", >+ extra => { list => ["batch", "z3950", "webservice"] }, >+ is_nullable => 0, >+ }, >+ "file_name", >+ { data_type => "varchar", is_nullable => 1, size => 100 }, >+ "comments", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "record_type", >+ { >+ data_type => "enum", >+ default_value => "biblio", >+ extra => { list => ["biblio", "auth", "holdings"] }, >+ is_nullable => 0, >+ }, >+); >+__PACKAGE__->set_primary_key("import_batch_id"); >+ >+=head1 RELATIONS >+ >+=head2 import_records >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::ImportRecord> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "import_records", >+ "Koha::Schema::Result::ImportRecord", >+ { "foreign.import_batch_id" => "self.import_batch_id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:es2clfR8Vlgv8rN/kM65iA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/ImportBiblio.pm b/Koha/Schema/Result/ImportBiblio.pm >new file mode 100644 >index 0000000..a8fc48f >--- /dev/null >+++ b/Koha/Schema/Result/ImportBiblio.pm >@@ -0,0 +1,121 @@ >+package Koha::Schema::Result::ImportBiblio; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::ImportBiblio >+ >+=cut >+ >+__PACKAGE__->table("import_biblios"); >+ >+=head1 ACCESSORS >+ >+=head2 import_record_id >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 matched_biblionumber >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 control_number >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 25 >+ >+=head2 original_source >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 25 >+ >+=head2 title >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 128 >+ >+=head2 author >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 80 >+ >+=head2 isbn >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 30 >+ >+=head2 issn >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 9 >+ >+=head2 has_items >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "import_record_id", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "matched_biblionumber", >+ { data_type => "integer", is_nullable => 1 }, >+ "control_number", >+ { data_type => "varchar", is_nullable => 1, size => 25 }, >+ "original_source", >+ { data_type => "varchar", is_nullable => 1, size => 25 }, >+ "title", >+ { data_type => "varchar", is_nullable => 1, size => 128 }, >+ "author", >+ { data_type => "varchar", is_nullable => 1, size => 80 }, >+ "isbn", >+ { data_type => "varchar", is_nullable => 1, size => 30 }, >+ "issn", >+ { data_type => "varchar", is_nullable => 1, size => 9 }, >+ "has_items", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+); >+ >+=head1 RELATIONS >+ >+=head2 import_record >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::ImportRecord> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "import_record", >+ "Koha::Schema::Result::ImportRecord", >+ { import_record_id => "import_record_id" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HJRDv5y++ivu2IsDFMbGMw >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/ImportItem.pm b/Koha/Schema/Result/ImportItem.pm >new file mode 100644 >index 0000000..08ca980 >--- /dev/null >+++ b/Koha/Schema/Result/ImportItem.pm >@@ -0,0 +1,110 @@ >+package Koha::Schema::Result::ImportItem; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::ImportItem >+ >+=cut >+ >+__PACKAGE__->table("import_items"); >+ >+=head1 ACCESSORS >+ >+=head2 import_items_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 import_record_id >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 itemnumber >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 branchcode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 status >+ >+ data_type: 'enum' >+ default_value: 'staged' >+ extra: {list => ["error","staged","imported","reverted","ignored"]} >+ is_nullable: 0 >+ >+=head2 marcxml >+ >+ data_type: 'longtext' >+ is_nullable: 0 >+ >+=head2 import_error >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "import_items_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "import_record_id", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "itemnumber", >+ { data_type => "integer", is_nullable => 1 }, >+ "branchcode", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "status", >+ { >+ data_type => "enum", >+ default_value => "staged", >+ extra => { list => ["error", "staged", "imported", "reverted", "ignored"] }, >+ is_nullable => 0, >+ }, >+ "marcxml", >+ { data_type => "longtext", is_nullable => 0 }, >+ "import_error", >+ { data_type => "mediumtext", is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("import_items_id"); >+ >+=head1 RELATIONS >+ >+=head2 import_record >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::ImportRecord> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "import_record", >+ "Koha::Schema::Result::ImportRecord", >+ { import_record_id => "import_record_id" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2PCGat+VP/DjjEe+G0gb3Q >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/ImportRecord.pm b/Koha/Schema/Result/ImportRecord.pm >new file mode 100644 >index 0000000..6922ad7 >--- /dev/null >+++ b/Koha/Schema/Result/ImportRecord.pm >@@ -0,0 +1,260 @@ >+package Koha::Schema::Result::ImportRecord; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::ImportRecord >+ >+=cut >+ >+__PACKAGE__->table("import_records"); >+ >+=head1 ACCESSORS >+ >+=head2 import_record_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 import_batch_id >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 branchcode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 record_sequence >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 upload_timestamp >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=head2 import_date >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 marc >+ >+ data_type: 'longblob' >+ is_nullable: 0 >+ >+=head2 marcxml >+ >+ data_type: 'longtext' >+ is_nullable: 0 >+ >+=head2 marcxml_old >+ >+ data_type: 'longtext' >+ is_nullable: 0 >+ >+=head2 record_type >+ >+ data_type: 'enum' >+ default_value: 'biblio' >+ extra: {list => ["biblio","auth","holdings"]} >+ is_nullable: 0 >+ >+=head2 overlay_status >+ >+ data_type: 'enum' >+ default_value: 'no_match' >+ extra: {list => ["no_match","auto_match","manual_match","match_applied"]} >+ is_nullable: 0 >+ >+=head2 status >+ >+ data_type: 'enum' >+ default_value: 'staged' >+ extra: {list => ["error","staged","imported","reverted","items_reverted","ignored"]} >+ is_nullable: 0 >+ >+=head2 import_error >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 encoding >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 40 >+ >+=head2 z3950random >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 40 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "import_record_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "import_batch_id", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "branchcode", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "record_sequence", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "upload_timestamp", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+ "import_date", >+ { data_type => "date", is_nullable => 1 }, >+ "marc", >+ { data_type => "longblob", is_nullable => 0 }, >+ "marcxml", >+ { data_type => "longtext", is_nullable => 0 }, >+ "marcxml_old", >+ { data_type => "longtext", is_nullable => 0 }, >+ "record_type", >+ { >+ data_type => "enum", >+ default_value => "biblio", >+ extra => { list => ["biblio", "auth", "holdings"] }, >+ is_nullable => 0, >+ }, >+ "overlay_status", >+ { >+ data_type => "enum", >+ default_value => "no_match", >+ extra => { >+ list => ["no_match", "auto_match", "manual_match", "match_applied"], >+ }, >+ is_nullable => 0, >+ }, >+ "status", >+ { >+ data_type => "enum", >+ default_value => "staged", >+ extra => { >+ list => [ >+ "error", >+ "staged", >+ "imported", >+ "reverted", >+ "items_reverted", >+ "ignored", >+ ], >+ }, >+ is_nullable => 0, >+ }, >+ "import_error", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "encoding", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 40 }, >+ "z3950random", >+ { data_type => "varchar", is_nullable => 1, size => 40 }, >+); >+__PACKAGE__->set_primary_key("import_record_id"); >+ >+=head1 RELATIONS >+ >+=head2 import_auths >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::ImportAuth> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "import_auths", >+ "Koha::Schema::Result::ImportAuth", >+ { "foreign.import_record_id" => "self.import_record_id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 import_biblios >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::ImportBiblio> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "import_biblios", >+ "Koha::Schema::Result::ImportBiblio", >+ { "foreign.import_record_id" => "self.import_record_id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 import_items >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::ImportItem> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "import_items", >+ "Koha::Schema::Result::ImportItem", >+ { "foreign.import_record_id" => "self.import_record_id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 import_records_matches >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::ImportRecordMatches> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "import_records_matches", >+ "Koha::Schema::Result::ImportRecordMatches", >+ { "foreign.import_record_id" => "self.import_record_id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 import_batch >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::ImportBatch> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "import_batch", >+ "Koha::Schema::Result::ImportBatch", >+ { import_batch_id => "import_batch_id" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4BPw0d87+uhdeHd0DnL6Ng >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/ImportRecordMatches.pm b/Koha/Schema/Result/ImportRecordMatches.pm >new file mode 100644 >index 0000000..5f34d30 >--- /dev/null >+++ b/Koha/Schema/Result/ImportRecordMatches.pm >@@ -0,0 +1,73 @@ >+package Koha::Schema::Result::ImportRecordMatches; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::ImportRecordMatches >+ >+=cut >+ >+__PACKAGE__->table("import_record_matches"); >+ >+=head1 ACCESSORS >+ >+=head2 import_record_id >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 candidate_match_id >+ >+ data_type: 'integer' >+ is_nullable: 0 >+ >+=head2 score >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "import_record_id", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "candidate_match_id", >+ { data_type => "integer", is_nullable => 0 }, >+ "score", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+); >+ >+=head1 RELATIONS >+ >+=head2 import_record >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::ImportRecord> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "import_record", >+ "Koha::Schema::Result::ImportRecord", >+ { import_record_id => "import_record_id" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XNn+Yyr6xKz3R4ewz9PSpQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Issue.pm b/Koha/Schema/Result/Issue.pm >new file mode 100644 >index 0000000..ebbe7a0 >--- /dev/null >+++ b/Koha/Schema/Result/Issue.pm >@@ -0,0 +1,152 @@ >+package Koha::Schema::Result::Issue; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Issue >+ >+=cut >+ >+__PACKAGE__->table("issues"); >+ >+=head1 ACCESSORS >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 itemnumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 date_due >+ >+ data_type: 'datetime' >+ is_nullable: 1 >+ >+=head2 branchcode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 issuingbranch >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 18 >+ >+=head2 returndate >+ >+ data_type: 'datetime' >+ is_nullable: 1 >+ >+=head2 lastreneweddate >+ >+ data_type: 'datetime' >+ is_nullable: 1 >+ >+=head2 return >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 4 >+ >+=head2 renewals >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 timestamp >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=head2 issuedate >+ >+ data_type: 'datetime' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "borrowernumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "itemnumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "date_due", >+ { data_type => "datetime", is_nullable => 1 }, >+ "branchcode", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "issuingbranch", >+ { data_type => "varchar", is_nullable => 1, size => 18 }, >+ "returndate", >+ { data_type => "datetime", is_nullable => 1 }, >+ "lastreneweddate", >+ { data_type => "datetime", is_nullable => 1 }, >+ "return", >+ { data_type => "varchar", is_nullable => 1, size => 4 }, >+ "renewals", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "timestamp", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+ "issuedate", >+ { data_type => "datetime", is_nullable => 1 }, >+); >+ >+=head1 RELATIONS >+ >+=head2 borrowernumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "borrowernumber", >+ "Koha::Schema::Result::Borrower", >+ { borrowernumber => "borrowernumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 itemnumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Item> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "itemnumber", >+ "Koha::Schema::Result::Item", >+ { itemnumber => "itemnumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KCy3FmbJK9aZRqXSAkYe5g >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Issuingrule.pm b/Koha/Schema/Result/Issuingrule.pm >new file mode 100644 >index 0000000..6d3dbd0 >--- /dev/null >+++ b/Koha/Schema/Result/Issuingrule.pm >@@ -0,0 +1,194 @@ >+package Koha::Schema::Result::Issuingrule; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Issuingrule >+ >+=cut >+ >+__PACKAGE__->table("issuingrules"); >+ >+=head1 ACCESSORS >+ >+=head2 categorycode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=head2 itemtype >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=head2 restrictedtype >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 rentaldiscount >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [28,6] >+ >+=head2 reservecharge >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [28,6] >+ >+=head2 fine >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [28,6] >+ >+=head2 finedays >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 firstremind >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 chargeperiod >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 accountsent >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 chargename >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 100 >+ >+=head2 maxissueqty >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 issuelength >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 lengthunit >+ >+ data_type: 'varchar' >+ default_value: 'days' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 hardduedate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 hardduedatecompare >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 renewalsallowed >+ >+ data_type: 'smallint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 reservesallowed >+ >+ data_type: 'smallint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 branchcode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=head2 overduefinescap >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "categorycode", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+ "itemtype", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+ "restrictedtype", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "rentaldiscount", >+ { data_type => "decimal", is_nullable => 1, size => [28, 6] }, >+ "reservecharge", >+ { data_type => "decimal", is_nullable => 1, size => [28, 6] }, >+ "fine", >+ { data_type => "decimal", is_nullable => 1, size => [28, 6] }, >+ "finedays", >+ { data_type => "integer", is_nullable => 1 }, >+ "firstremind", >+ { data_type => "integer", is_nullable => 1 }, >+ "chargeperiod", >+ { data_type => "integer", is_nullable => 1 }, >+ "accountsent", >+ { data_type => "integer", is_nullable => 1 }, >+ "chargename", >+ { data_type => "varchar", is_nullable => 1, size => 100 }, >+ "maxissueqty", >+ { data_type => "integer", is_nullable => 1 }, >+ "issuelength", >+ { data_type => "integer", is_nullable => 1 }, >+ "lengthunit", >+ { >+ data_type => "varchar", >+ default_value => "days", >+ is_nullable => 1, >+ size => 10, >+ }, >+ "hardduedate", >+ { data_type => "date", is_nullable => 1 }, >+ "hardduedatecompare", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "renewalsallowed", >+ { data_type => "smallint", default_value => 0, is_nullable => 0 }, >+ "reservesallowed", >+ { data_type => "smallint", default_value => 0, is_nullable => 0 }, >+ "branchcode", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+ "overduefinescap", >+ { data_type => "decimal", is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bsTUaL5I872EWP0ZLfdPQA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Item.pm b/Koha/Schema/Result/Item.pm >new file mode 100644 >index 0000000..13d4d7f >--- /dev/null >+++ b/Koha/Schema/Result/Item.pm >@@ -0,0 +1,525 @@ >+package Koha::Schema::Result::Item; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Item >+ >+=cut >+ >+__PACKAGE__->table("items"); >+ >+=head1 ACCESSORS >+ >+=head2 itemnumber >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 biblionumber >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 biblioitemnumber >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 barcode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 20 >+ >+=head2 dateaccessioned >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 booksellerid >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 homebranch >+ >+ data_type: 'varchar' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ size: 10 >+ >+=head2 price >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [8,2] >+ >+=head2 replacementprice >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [8,2] >+ >+=head2 replacementpricedate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 datelastborrowed >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 datelastseen >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 stack >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 notforloan >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 damaged >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 itemlost >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 wthdrawn >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 itemcallnumber >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 issues >+ >+ data_type: 'smallint' >+ is_nullable: 1 >+ >+=head2 renewals >+ >+ data_type: 'smallint' >+ is_nullable: 1 >+ >+=head2 reserves >+ >+ data_type: 'smallint' >+ is_nullable: 1 >+ >+=head2 restricted >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 itemnotes >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 holdingbranch >+ >+ data_type: 'varchar' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ size: 10 >+ >+=head2 paidfor >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 timestamp >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=head2 location >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 80 >+ >+=head2 permanent_location >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 80 >+ >+=head2 onloan >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 cn_source >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 cn_sort >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 30 >+ >+=head2 ccode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 materials >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 uri >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 itype >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 more_subfields_xml >+ >+ data_type: 'longtext' >+ is_nullable: 1 >+ >+=head2 enumchron >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 copynumber >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 32 >+ >+=head2 stocknumber >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 32 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "itemnumber", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "biblionumber", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "biblioitemnumber", >+ { >+ data_type => "integer", >+ default_value => 0, >+ is_foreign_key => 1, >+ is_nullable => 0, >+ }, >+ "barcode", >+ { data_type => "varchar", is_nullable => 1, size => 20 }, >+ "dateaccessioned", >+ { data_type => "date", is_nullable => 1 }, >+ "booksellerid", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "homebranch", >+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, >+ "price", >+ { data_type => "decimal", is_nullable => 1, size => [8, 2] }, >+ "replacementprice", >+ { data_type => "decimal", is_nullable => 1, size => [8, 2] }, >+ "replacementpricedate", >+ { data_type => "date", is_nullable => 1 }, >+ "datelastborrowed", >+ { data_type => "date", is_nullable => 1 }, >+ "datelastseen", >+ { data_type => "date", is_nullable => 1 }, >+ "stack", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "notforloan", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "damaged", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "itemlost", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "wthdrawn", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "itemcallnumber", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "issues", >+ { data_type => "smallint", is_nullable => 1 }, >+ "renewals", >+ { data_type => "smallint", is_nullable => 1 }, >+ "reserves", >+ { data_type => "smallint", is_nullable => 1 }, >+ "restricted", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "itemnotes", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "holdingbranch", >+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, >+ "paidfor", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "timestamp", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+ "location", >+ { data_type => "varchar", is_nullable => 1, size => 80 }, >+ "permanent_location", >+ { data_type => "varchar", is_nullable => 1, size => 80 }, >+ "onloan", >+ { data_type => "date", is_nullable => 1 }, >+ "cn_source", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "cn_sort", >+ { data_type => "varchar", is_nullable => 1, size => 30 }, >+ "ccode", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "materials", >+ { data_type => "text", is_nullable => 1 }, >+ "uri", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "itype", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "more_subfields_xml", >+ { data_type => "longtext", is_nullable => 1 }, >+ "enumchron", >+ { data_type => "text", is_nullable => 1 }, >+ "copynumber", >+ { data_type => "varchar", is_nullable => 1, size => 32 }, >+ "stocknumber", >+ { data_type => "varchar", is_nullable => 1, size => 32 }, >+); >+__PACKAGE__->set_primary_key("itemnumber"); >+__PACKAGE__->add_unique_constraint("itembarcodeidx", ["barcode"]); >+ >+=head1 RELATIONS >+ >+=head2 accountlines >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Accountline> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "accountlines", >+ "Koha::Schema::Result::Accountline", >+ { "foreign.itemnumber" => "self.itemnumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 branchtransfers >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Branchtransfer> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "branchtransfers", >+ "Koha::Schema::Result::Branchtransfer", >+ { "foreign.itemnumber" => "self.itemnumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 creator_batches >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::CreatorBatch> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "creator_batches", >+ "Koha::Schema::Result::CreatorBatch", >+ { "foreign.item_number" => "self.itemnumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 hold_fill_target >+ >+Type: might_have >+ >+Related object: L<Koha::Schema::Result::HoldFillTarget> >+ >+=cut >+ >+__PACKAGE__->might_have( >+ "hold_fill_target", >+ "Koha::Schema::Result::HoldFillTarget", >+ { "foreign.itemnumber" => "self.itemnumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 issues >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Issue> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "issues", >+ "Koha::Schema::Result::Issue", >+ { "foreign.itemnumber" => "self.itemnumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 biblioitemnumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Biblioitem> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "biblioitemnumber", >+ "Koha::Schema::Result::Biblioitem", >+ { biblioitemnumber => "biblioitemnumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 homebranch >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Branch> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "homebranch", >+ "Koha::Schema::Result::Branch", >+ { branchcode => "homebranch" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 holdingbranch >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Branch> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "holdingbranch", >+ "Koha::Schema::Result::Branch", >+ { branchcode => "holdingbranch" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 old_issues >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::OldIssue> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "old_issues", >+ "Koha::Schema::Result::OldIssue", >+ { "foreign.itemnumber" => "self.itemnumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 old_reserves >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::OldReserve> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "old_reserves", >+ "Koha::Schema::Result::OldReserve", >+ { "foreign.itemnumber" => "self.itemnumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 reserves >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Reserve> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "reserves", >+ "Koha::Schema::Result::Reserve", >+ { "foreign.itemnumber" => "self.itemnumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 serialitem >+ >+Type: might_have >+ >+Related object: L<Koha::Schema::Result::Serialitem> >+ >+=cut >+ >+__PACKAGE__->might_have( >+ "serialitem", >+ "Koha::Schema::Result::Serialitem", >+ { "foreign.itemnumber" => "self.itemnumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+jjodrPqX4WhBbgnTc5OqQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/ItemCirculationAlertPreference.pm b/Koha/Schema/Result/ItemCirculationAlertPreference.pm >new file mode 100644 >index 0000000..3e9f0d7 >--- /dev/null >+++ b/Koha/Schema/Result/ItemCirculationAlertPreference.pm >@@ -0,0 +1,74 @@ >+package Koha::Schema::Result::ItemCirculationAlertPreference; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::ItemCirculationAlertPreference >+ >+=cut >+ >+__PACKAGE__->table("item_circulation_alert_preferences"); >+ >+=head1 ACCESSORS >+ >+=head2 id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 branchcode >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 10 >+ >+=head2 categorycode >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 10 >+ >+=head2 item_type >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 10 >+ >+=head2 notification >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 16 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "branchcode", >+ { data_type => "varchar", is_nullable => 0, size => 10 }, >+ "categorycode", >+ { data_type => "varchar", is_nullable => 0, size => 10 }, >+ "item_type", >+ { data_type => "varchar", is_nullable => 0, size => 10 }, >+ "notification", >+ { data_type => "varchar", is_nullable => 0, size => 16 }, >+); >+__PACKAGE__->set_primary_key("id"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:u0W8zw5k/6shlotWbr/5UA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Itemtype.pm b/Koha/Schema/Result/Itemtype.pm >new file mode 100644 >index 0000000..cc145b4 >--- /dev/null >+++ b/Koha/Schema/Result/Itemtype.pm >@@ -0,0 +1,112 @@ >+package Koha::Schema::Result::Itemtype; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Itemtype >+ >+=cut >+ >+__PACKAGE__->table("itemtypes"); >+ >+=head1 ACCESSORS >+ >+=head2 itemtype >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=head2 description >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 rentalcharge >+ >+ data_type: 'double precision' >+ is_nullable: 1 >+ size: [16,4] >+ >+=head2 notforloan >+ >+ data_type: 'smallint' >+ is_nullable: 1 >+ >+=head2 imageurl >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 200 >+ >+=head2 summary >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "itemtype", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+ "description", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "rentalcharge", >+ { data_type => "double precision", is_nullable => 1, size => [16, 4] }, >+ "notforloan", >+ { data_type => "smallint", is_nullable => 1 }, >+ "imageurl", >+ { data_type => "varchar", is_nullable => 1, size => 200 }, >+ "summary", >+ { data_type => "text", is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("itemtype"); >+ >+=head1 RELATIONS >+ >+=head2 branch_item_rules >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::BranchItemRule> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "branch_item_rules", >+ "Koha::Schema::Result::BranchItemRule", >+ { "foreign.itemtype" => "self.itemtype" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 default_branch_item_rule >+ >+Type: might_have >+ >+Related object: L<Koha::Schema::Result::DefaultBranchItemRule> >+ >+=cut >+ >+__PACKAGE__->might_have( >+ "default_branch_item_rule", >+ "Koha::Schema::Result::DefaultBranchItemRule", >+ { "foreign.itemtype" => "self.itemtype" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:U4zQb4FXeB0GE8+Kyp9X1Q >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/LanguageDescription.pm b/Koha/Schema/Result/LanguageDescription.pm >new file mode 100644 >index 0000000..ed4a7e02 >--- /dev/null >+++ b/Koha/Schema/Result/LanguageDescription.pm >@@ -0,0 +1,74 @@ >+package Koha::Schema::Result::LanguageDescription; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::LanguageDescription >+ >+=cut >+ >+__PACKAGE__->table("language_descriptions"); >+ >+=head1 ACCESSORS >+ >+=head2 subtag >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 25 >+ >+=head2 type >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 25 >+ >+=head2 lang >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 25 >+ >+=head2 description >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "subtag", >+ { data_type => "varchar", is_nullable => 1, size => 25 }, >+ "type", >+ { data_type => "varchar", is_nullable => 1, size => 25 }, >+ "lang", >+ { data_type => "varchar", is_nullable => 1, size => 25 }, >+ "description", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("id"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WmYReEEJY/1M9lgDnNVZWA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/LanguageRfc4646ToIso639.pm b/Koha/Schema/Result/LanguageRfc4646ToIso639.pm >new file mode 100644 >index 0000000..96e7462 >--- /dev/null >+++ b/Koha/Schema/Result/LanguageRfc4646ToIso639.pm >@@ -0,0 +1,58 @@ >+package Koha::Schema::Result::LanguageRfc4646ToIso639; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::LanguageRfc4646ToIso639 >+ >+=cut >+ >+__PACKAGE__->table("language_rfc4646_to_iso639"); >+ >+=head1 ACCESSORS >+ >+=head2 rfc4646_subtag >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 25 >+ >+=head2 iso639_2_code >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 25 >+ >+=head2 id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "rfc4646_subtag", >+ { data_type => "varchar", is_nullable => 1, size => 25 }, >+ "iso639_2_code", >+ { data_type => "varchar", is_nullable => 1, size => 25 }, >+ "id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("id"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vwUWEmP6tprD5pTK2xnqfw >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/LanguageScriptBidi.pm b/Koha/Schema/Result/LanguageScriptBidi.pm >new file mode 100644 >index 0000000..dbaa010 >--- /dev/null >+++ b/Koha/Schema/Result/LanguageScriptBidi.pm >@@ -0,0 +1,49 @@ >+package Koha::Schema::Result::LanguageScriptBidi; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::LanguageScriptBidi >+ >+=cut >+ >+__PACKAGE__->table("language_script_bidi"); >+ >+=head1 ACCESSORS >+ >+=head2 rfc4646_subtag >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 25 >+ >+=head2 bidi >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 3 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "rfc4646_subtag", >+ { data_type => "varchar", is_nullable => 1, size => 25 }, >+ "bidi", >+ { data_type => "varchar", is_nullable => 1, size => 3 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AF0TN1yPhye2rmM2hqjBhw >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/LanguageScriptMapping.pm b/Koha/Schema/Result/LanguageScriptMapping.pm >new file mode 100644 >index 0000000..f216056 >--- /dev/null >+++ b/Koha/Schema/Result/LanguageScriptMapping.pm >@@ -0,0 +1,49 @@ >+package Koha::Schema::Result::LanguageScriptMapping; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::LanguageScriptMapping >+ >+=cut >+ >+__PACKAGE__->table("language_script_mapping"); >+ >+=head1 ACCESSORS >+ >+=head2 language_subtag >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 25 >+ >+=head2 script_subtag >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 25 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "language_subtag", >+ { data_type => "varchar", is_nullable => 1, size => 25 }, >+ "script_subtag", >+ { data_type => "varchar", is_nullable => 1, size => 25 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JZq4ORzniNZ2ureISmxuYg >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/LanguageSubtagRegistry.pm b/Koha/Schema/Result/LanguageSubtagRegistry.pm >new file mode 100644 >index 0000000..809f3d2 >--- /dev/null >+++ b/Koha/Schema/Result/LanguageSubtagRegistry.pm >@@ -0,0 +1,73 @@ >+package Koha::Schema::Result::LanguageSubtagRegistry; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::LanguageSubtagRegistry >+ >+=cut >+ >+__PACKAGE__->table("language_subtag_registry"); >+ >+=head1 ACCESSORS >+ >+=head2 subtag >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 25 >+ >+=head2 type >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 25 >+ >+=head2 description >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 25 >+ >+=head2 added >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "subtag", >+ { data_type => "varchar", is_nullable => 1, size => 25 }, >+ "type", >+ { data_type => "varchar", is_nullable => 1, size => 25 }, >+ "description", >+ { data_type => "varchar", is_nullable => 1, size => 25 }, >+ "added", >+ { data_type => "date", is_nullable => 1 }, >+ "id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("id"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3XkyaSdpFe0F5KktVox9nQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Letter.pm b/Koha/Schema/Result/Letter.pm >new file mode 100644 >index 0000000..447f84d >--- /dev/null >+++ b/Koha/Schema/Result/Letter.pm >@@ -0,0 +1,115 @@ >+package Koha::Schema::Result::Letter; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Letter >+ >+=cut >+ >+__PACKAGE__->table("letter"); >+ >+=head1 ACCESSORS >+ >+=head2 module >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 20 >+ >+=head2 code >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 20 >+ >+=head2 branchcode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=head2 name >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 100 >+ >+=head2 is_html >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 title >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 200 >+ >+=head2 content >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "module", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 20 }, >+ "code", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 20 }, >+ "branchcode", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+ "name", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 }, >+ "is_html", >+ { data_type => "tinyint", default_value => 0, is_nullable => 1 }, >+ "title", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 200 }, >+ "content", >+ { data_type => "text", is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("module", "code", "branchcode"); >+ >+=head1 RELATIONS >+ >+=head2 message_transports >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::MessageTransport> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "message_transports", >+ "Koha::Schema::Result::MessageTransport", >+ { >+ "foreign.branchcode" => "self.branchcode", >+ "foreign.letter_code" => "self.code", >+ "foreign.letter_module" => "self.module", >+ }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MDVfBFxikRa6QrFHs549ZA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/MarcMatcher.pm b/Koha/Schema/Result/MarcMatcher.pm >new file mode 100644 >index 0000000..5e77317 >--- /dev/null >+++ b/Koha/Schema/Result/MarcMatcher.pm >@@ -0,0 +1,129 @@ >+package Koha::Schema::Result::MarcMatcher; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::MarcMatcher >+ >+=cut >+ >+__PACKAGE__->table("marc_matchers"); >+ >+=head1 ACCESSORS >+ >+=head2 matcher_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 code >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=head2 description >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 255 >+ >+=head2 record_type >+ >+ data_type: 'varchar' >+ default_value: 'biblio' >+ is_nullable: 0 >+ size: 10 >+ >+=head2 threshold >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "matcher_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "code", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+ "description", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, >+ "record_type", >+ { >+ data_type => "varchar", >+ default_value => "biblio", >+ is_nullable => 0, >+ size => 10, >+ }, >+ "threshold", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("matcher_id"); >+ >+=head1 RELATIONS >+ >+=head2 matchchecks >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Matchcheck> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "matchchecks", >+ "Koha::Schema::Result::Matchcheck", >+ { "foreign.matcher_id" => "self.matcher_id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 matcher_matchpoints >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::MatcherMatchpoint> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "matcher_matchpoints", >+ "Koha::Schema::Result::MatcherMatchpoint", >+ { "foreign.matcher_id" => "self.matcher_id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 matchpoints >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Matchpoint> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "matchpoints", >+ "Koha::Schema::Result::Matchpoint", >+ { "foreign.matcher_id" => "self.matcher_id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iZyWhA28vO7VHWXtE473TQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/MarcSubfieldStructure.pm b/Koha/Schema/Result/MarcSubfieldStructure.pm >new file mode 100644 >index 0000000..773bcb1 >--- /dev/null >+++ b/Koha/Schema/Result/MarcSubfieldStructure.pm >@@ -0,0 +1,179 @@ >+package Koha::Schema::Result::MarcSubfieldStructure; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::MarcSubfieldStructure >+ >+=cut >+ >+__PACKAGE__->table("marc_subfield_structure"); >+ >+=head1 ACCESSORS >+ >+=head2 tagfield >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 3 >+ >+=head2 tagsubfield >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 1 >+ >+=head2 liblibrarian >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 255 >+ >+=head2 libopac >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 255 >+ >+=head2 repeatable >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 mandatory >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 kohafield >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 40 >+ >+=head2 tab >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 authorised_value >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 20 >+ >+=head2 authtypecode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 20 >+ >+=head2 value_builder >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 80 >+ >+=head2 isurl >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 hidden >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 frameworkcode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 4 >+ >+=head2 seealso >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 1100 >+ >+=head2 link >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 80 >+ >+=head2 defaultvalue >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 maxlength >+ >+ data_type: 'integer' >+ default_value: 9999 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "tagfield", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 }, >+ "tagsubfield", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 1 }, >+ "liblibrarian", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, >+ "libopac", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, >+ "repeatable", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "mandatory", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "kohafield", >+ { data_type => "varchar", is_nullable => 1, size => 40 }, >+ "tab", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "authorised_value", >+ { data_type => "varchar", is_nullable => 1, size => 20 }, >+ "authtypecode", >+ { data_type => "varchar", is_nullable => 1, size => 20 }, >+ "value_builder", >+ { data_type => "varchar", is_nullable => 1, size => 80 }, >+ "isurl", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "hidden", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "frameworkcode", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 }, >+ "seealso", >+ { data_type => "varchar", is_nullable => 1, size => 1100 }, >+ "link", >+ { data_type => "varchar", is_nullable => 1, size => 80 }, >+ "defaultvalue", >+ { data_type => "text", is_nullable => 1 }, >+ "maxlength", >+ { data_type => "integer", default_value => 9999, is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("frameworkcode", "tagfield", "tagsubfield"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6UMADnf1NRqg+kxGn1LdrQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/MarcTagStructure.pm b/Koha/Schema/Result/MarcTagStructure.pm >new file mode 100644 >index 0000000..9cd74af >--- /dev/null >+++ b/Koha/Schema/Result/MarcTagStructure.pm >@@ -0,0 +1,94 @@ >+package Koha::Schema::Result::MarcTagStructure; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::MarcTagStructure >+ >+=cut >+ >+__PACKAGE__->table("marc_tag_structure"); >+ >+=head1 ACCESSORS >+ >+=head2 tagfield >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 3 >+ >+=head2 liblibrarian >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 255 >+ >+=head2 libopac >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 255 >+ >+=head2 repeatable >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 mandatory >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 authorised_value >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 frameworkcode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 4 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "tagfield", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 }, >+ "liblibrarian", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, >+ "libopac", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, >+ "repeatable", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "mandatory", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "authorised_value", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "frameworkcode", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 }, >+); >+__PACKAGE__->set_primary_key("frameworkcode", "tagfield"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wQUMc8pLSjTOgr7+Z6sscQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Matchcheck.pm b/Koha/Schema/Result/Matchcheck.pm >new file mode 100644 >index 0000000..bb5a847 >--- /dev/null >+++ b/Koha/Schema/Result/Matchcheck.pm >@@ -0,0 +1,113 @@ >+package Koha::Schema::Result::Matchcheck; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Matchcheck >+ >+=cut >+ >+__PACKAGE__->table("matchchecks"); >+ >+=head1 ACCESSORS >+ >+=head2 matcher_id >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 matchcheck_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 source_matchpoint_id >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 target_matchpoint_id >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "matcher_id", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "matchcheck_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "source_matchpoint_id", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "target_matchpoint_id", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("matchcheck_id"); >+ >+=head1 RELATIONS >+ >+=head2 matcher >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::MarcMatcher> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "matcher", >+ "Koha::Schema::Result::MarcMatcher", >+ { matcher_id => "matcher_id" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 source_matchpoint >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Matchpoint> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "source_matchpoint", >+ "Koha::Schema::Result::Matchpoint", >+ { matchpoint_id => "source_matchpoint_id" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 target_matchpoint >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Matchpoint> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "target_matchpoint", >+ "Koha::Schema::Result::Matchpoint", >+ { matchpoint_id => "target_matchpoint_id" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:R2duGZidKaVVqnfQP5pSvQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/MatcherMatchpoint.pm b/Koha/Schema/Result/MatcherMatchpoint.pm >new file mode 100644 >index 0000000..af3a136 >--- /dev/null >+++ b/Koha/Schema/Result/MatcherMatchpoint.pm >@@ -0,0 +1,81 @@ >+package Koha::Schema::Result::MatcherMatchpoint; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::MatcherMatchpoint >+ >+=cut >+ >+__PACKAGE__->table("matcher_matchpoints"); >+ >+=head1 ACCESSORS >+ >+=head2 matcher_id >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 matchpoint_id >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "matcher_id", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "matchpoint_id", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+); >+ >+=head1 RELATIONS >+ >+=head2 matcher >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::MarcMatcher> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "matcher", >+ "Koha::Schema::Result::MarcMatcher", >+ { matcher_id => "matcher_id" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 matchpoint >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Matchpoint> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "matchpoint", >+ "Koha::Schema::Result::Matchpoint", >+ { matchpoint_id => "matchpoint_id" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GBxofoXbX0KRwU1fa5bQ2g >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Matchpoint.pm b/Koha/Schema/Result/Matchpoint.pm >new file mode 100644 >index 0000000..0f1bf69 >--- /dev/null >+++ b/Koha/Schema/Result/Matchpoint.pm >@@ -0,0 +1,144 @@ >+package Koha::Schema::Result::Matchpoint; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Matchpoint >+ >+=cut >+ >+__PACKAGE__->table("matchpoints"); >+ >+=head1 ACCESSORS >+ >+=head2 matcher_id >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 matchpoint_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 search_index >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 30 >+ >+=head2 score >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "matcher_id", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "matchpoint_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "search_index", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 30 }, >+ "score", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("matchpoint_id"); >+ >+=head1 RELATIONS >+ >+=head2 matchchecks_source_matchpoints >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Matchcheck> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "matchchecks_source_matchpoints", >+ "Koha::Schema::Result::Matchcheck", >+ { "foreign.source_matchpoint_id" => "self.matchpoint_id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 matchchecks_target_matchpoints >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Matchcheck> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "matchchecks_target_matchpoints", >+ "Koha::Schema::Result::Matchcheck", >+ { "foreign.target_matchpoint_id" => "self.matchpoint_id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 matcher_matchpoints >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::MatcherMatchpoint> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "matcher_matchpoints", >+ "Koha::Schema::Result::MatcherMatchpoint", >+ { "foreign.matchpoint_id" => "self.matchpoint_id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 matchpoint_components >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::MatchpointComponent> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "matchpoint_components", >+ "Koha::Schema::Result::MatchpointComponent", >+ { "foreign.matchpoint_id" => "self.matchpoint_id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 matcher >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::MarcMatcher> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "matcher", >+ "Koha::Schema::Result::MarcMatcher", >+ { matcher_id => "matcher_id" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ltzMXDHk2L7ECkLUrGXyzA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/MatchpointComponent.pm b/Koha/Schema/Result/MatchpointComponent.pm >new file mode 100644 >index 0000000..2609a26 >--- /dev/null >+++ b/Koha/Schema/Result/MatchpointComponent.pm >@@ -0,0 +1,132 @@ >+package Koha::Schema::Result::MatchpointComponent; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::MatchpointComponent >+ >+=cut >+ >+__PACKAGE__->table("matchpoint_components"); >+ >+=head1 ACCESSORS >+ >+=head2 matchpoint_id >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 matchpoint_component_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 sequence >+ >+ accessor: undef >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 tag >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 3 >+ >+=head2 subfields >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 40 >+ >+=head2 offset >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 length >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "matchpoint_id", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "matchpoint_component_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "sequence", >+ { >+ accessor => undef, >+ data_type => "integer", >+ default_value => 0, >+ is_nullable => 0, >+ }, >+ "tag", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 }, >+ "subfields", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 40 }, >+ "offset", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "length", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("matchpoint_component_id"); >+ >+=head1 RELATIONS >+ >+=head2 matchpoint_component_norms >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::MatchpointComponentNorm> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "matchpoint_component_norms", >+ "Koha::Schema::Result::MatchpointComponentNorm", >+ { >+ "foreign.matchpoint_component_id" => "self.matchpoint_component_id", >+ }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 matchpoint >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Matchpoint> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "matchpoint", >+ "Koha::Schema::Result::Matchpoint", >+ { matchpoint_id => "matchpoint_id" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/7C/jFYOMSF/AtJViHH7jQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/MatchpointComponentNorm.pm b/Koha/Schema/Result/MatchpointComponentNorm.pm >new file mode 100644 >index 0000000..dafc46e >--- /dev/null >+++ b/Koha/Schema/Result/MatchpointComponentNorm.pm >@@ -0,0 +1,81 @@ >+package Koha::Schema::Result::MatchpointComponentNorm; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::MatchpointComponentNorm >+ >+=cut >+ >+__PACKAGE__->table("matchpoint_component_norms"); >+ >+=head1 ACCESSORS >+ >+=head2 matchpoint_component_id >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 sequence >+ >+ accessor: undef >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 norm_routine >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 50 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "matchpoint_component_id", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "sequence", >+ { >+ accessor => undef, >+ data_type => "integer", >+ default_value => 0, >+ is_nullable => 0, >+ }, >+ "norm_routine", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 50 }, >+); >+ >+=head1 RELATIONS >+ >+=head2 matchpoint_component >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::MatchpointComponent> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "matchpoint_component", >+ "Koha::Schema::Result::MatchpointComponent", >+ { matchpoint_component_id => "matchpoint_component_id" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bfVMJiFqfjhc8fSKXNEtBA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Message.pm b/Koha/Schema/Result/Message.pm >new file mode 100644 >index 0000000..218c1e3 >--- /dev/null >+++ b/Koha/Schema/Result/Message.pm >@@ -0,0 +1,84 @@ >+package Koha::Schema::Result::Message; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Message >+ >+=cut >+ >+__PACKAGE__->table("messages"); >+ >+=head1 ACCESSORS >+ >+=head2 message_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ is_nullable: 0 >+ >+=head2 branchcode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 message_type >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 1 >+ >+=head2 message >+ >+ data_type: 'text' >+ is_nullable: 0 >+ >+=head2 message_date >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "message_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "borrowernumber", >+ { data_type => "integer", is_nullable => 0 }, >+ "branchcode", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "message_type", >+ { data_type => "varchar", is_nullable => 0, size => 1 }, >+ "message", >+ { data_type => "text", is_nullable => 0 }, >+ "message_date", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+); >+__PACKAGE__->set_primary_key("message_id"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fEt+ILa1HzB4aXmXkk8XXg >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/MessageAttribute.pm b/Koha/Schema/Result/MessageAttribute.pm >new file mode 100644 >index 0000000..34a091b >--- /dev/null >+++ b/Koha/Schema/Result/MessageAttribute.pm >@@ -0,0 +1,92 @@ >+package Koha::Schema::Result::MessageAttribute; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::MessageAttribute >+ >+=cut >+ >+__PACKAGE__->table("message_attributes"); >+ >+=head1 ACCESSORS >+ >+=head2 message_attribute_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 message_name >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 40 >+ >+=head2 takes_days >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "message_attribute_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "message_name", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 40 }, >+ "takes_days", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("message_attribute_id"); >+__PACKAGE__->add_unique_constraint("message_name", ["message_name"]); >+ >+=head1 RELATIONS >+ >+=head2 borrower_message_preferences >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::BorrowerMessagePreference> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "borrower_message_preferences", >+ "Koha::Schema::Result::BorrowerMessagePreference", >+ { "foreign.message_attribute_id" => "self.message_attribute_id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 message_transports >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::MessageTransport> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "message_transports", >+ "Koha::Schema::Result::MessageTransport", >+ { "foreign.message_attribute_id" => "self.message_attribute_id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nJqtM1tc/ouojD5I8+qg0A >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/MessageQueue.pm b/Koha/Schema/Result/MessageQueue.pm >new file mode 100644 >index 0000000..9e4ceda >--- /dev/null >+++ b/Koha/Schema/Result/MessageQueue.pm >@@ -0,0 +1,166 @@ >+package Koha::Schema::Result::MessageQueue; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::MessageQueue >+ >+=cut >+ >+__PACKAGE__->table("message_queue"); >+ >+=head1 ACCESSORS >+ >+=head2 message_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+=head2 subject >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 content >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 metadata >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 letter_code >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 64 >+ >+=head2 message_transport_type >+ >+ data_type: 'varchar' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 20 >+ >+=head2 status >+ >+ data_type: 'enum' >+ default_value: 'pending' >+ extra: {list => ["sent","pending","failed","deleted"]} >+ is_nullable: 0 >+ >+=head2 time_queued >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=head2 to_address >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 from_address >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 content_type >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "message_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "borrowernumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, >+ "subject", >+ { data_type => "text", is_nullable => 1 }, >+ "content", >+ { data_type => "text", is_nullable => 1 }, >+ "metadata", >+ { data_type => "text", is_nullable => 1 }, >+ "letter_code", >+ { data_type => "varchar", is_nullable => 1, size => 64 }, >+ "message_transport_type", >+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 20 }, >+ "status", >+ { >+ data_type => "enum", >+ default_value => "pending", >+ extra => { list => ["sent", "pending", "failed", "deleted"] }, >+ is_nullable => 0, >+ }, >+ "time_queued", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+ "to_address", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "from_address", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "content_type", >+ { data_type => "text", is_nullable => 1 }, >+); >+ >+=head1 RELATIONS >+ >+=head2 borrowernumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "borrowernumber", >+ "Koha::Schema::Result::Borrower", >+ { borrowernumber => "borrowernumber" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 message_transport_type >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::MessageTransportType> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "message_transport_type", >+ "Koha::Schema::Result::MessageTransportType", >+ { message_transport_type => "message_transport_type" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kcpiO2MjqoETlnMyCBhP6Q >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/MessageTransport.pm b/Koha/Schema/Result/MessageTransport.pm >new file mode 100644 >index 0000000..0485bf4 >--- /dev/null >+++ b/Koha/Schema/Result/MessageTransport.pm >@@ -0,0 +1,158 @@ >+package Koha::Schema::Result::MessageTransport; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::MessageTransport >+ >+=cut >+ >+__PACKAGE__->table("message_transports"); >+ >+=head1 ACCESSORS >+ >+=head2 message_attribute_id >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 message_transport_type >+ >+ data_type: 'varchar' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 20 >+ >+=head2 is_digest >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 letter_module >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 20 >+ >+=head2 letter_code >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 20 >+ >+=head2 branchcode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 10 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "message_attribute_id", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "message_transport_type", >+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 20 }, >+ "is_digest", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "letter_module", >+ { >+ data_type => "varchar", >+ default_value => "", >+ is_foreign_key => 1, >+ is_nullable => 0, >+ size => 20, >+ }, >+ "letter_code", >+ { >+ data_type => "varchar", >+ default_value => "", >+ is_foreign_key => 1, >+ is_nullable => 0, >+ size => 20, >+ }, >+ "branchcode", >+ { >+ data_type => "varchar", >+ default_value => "", >+ is_foreign_key => 1, >+ is_nullable => 0, >+ size => 10, >+ }, >+); >+__PACKAGE__->set_primary_key("message_attribute_id", "message_transport_type", "is_digest"); >+ >+=head1 RELATIONS >+ >+=head2 message_attribute >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::MessageAttribute> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "message_attribute", >+ "Koha::Schema::Result::MessageAttribute", >+ { message_attribute_id => "message_attribute_id" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 message_transport_type >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::MessageTransportType> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "message_transport_type", >+ "Koha::Schema::Result::MessageTransportType", >+ { message_transport_type => "message_transport_type" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 letter >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Letter> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "letter", >+ "Koha::Schema::Result::Letter", >+ { >+ branchcode => "branchcode", >+ code => "letter_code", >+ module => "letter_module", >+ }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:erQZqSSp25HrYkWlHaaF9g >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/MessageTransportType.pm b/Koha/Schema/Result/MessageTransportType.pm >new file mode 100644 >index 0000000..ed93cf4 >--- /dev/null >+++ b/Koha/Schema/Result/MessageTransportType.pm >@@ -0,0 +1,95 @@ >+package Koha::Schema::Result::MessageTransportType; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::MessageTransportType >+ >+=cut >+ >+__PACKAGE__->table("message_transport_types"); >+ >+=head1 ACCESSORS >+ >+=head2 message_transport_type >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 20 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "message_transport_type", >+ { data_type => "varchar", is_nullable => 0, size => 20 }, >+); >+__PACKAGE__->set_primary_key("message_transport_type"); >+ >+=head1 RELATIONS >+ >+=head2 borrower_message_transport_preferences >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::BorrowerMessageTransportPreference> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "borrower_message_transport_preferences", >+ "Koha::Schema::Result::BorrowerMessageTransportPreference", >+ { >+ "foreign.message_transport_type" => "self.message_transport_type", >+ }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 message_queues >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::MessageQueue> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "message_queues", >+ "Koha::Schema::Result::MessageQueue", >+ { >+ "foreign.message_transport_type" => "self.message_transport_type", >+ }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 message_transports >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::MessageTransport> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "message_transports", >+ "Koha::Schema::Result::MessageTransport", >+ { >+ "foreign.message_transport_type" => "self.message_transport_type", >+ }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mEnlVv5CZ+YeZCHiOlk45g >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/NeedMergeAuthority.pm b/Koha/Schema/Result/NeedMergeAuthority.pm >new file mode 100644 >index 0000000..4e7eca6 >--- /dev/null >+++ b/Koha/Schema/Result/NeedMergeAuthority.pm >@@ -0,0 +1,57 @@ >+package Koha::Schema::Result::NeedMergeAuthority; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::NeedMergeAuthority >+ >+=cut >+ >+__PACKAGE__->table("need_merge_authorities"); >+ >+=head1 ACCESSORS >+ >+=head2 id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 authid >+ >+ data_type: 'bigint' >+ is_nullable: 0 >+ >+=head2 done >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "authid", >+ { data_type => "bigint", is_nullable => 0 }, >+ "done", >+ { data_type => "tinyint", default_value => 0, is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("id"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8PCvOl9x3QoD3aqi9CCBwA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Notify.pm b/Koha/Schema/Result/Notify.pm >new file mode 100644 >index 0000000..82a3f45 >--- /dev/null >+++ b/Koha/Schema/Result/Notify.pm >@@ -0,0 +1,88 @@ >+package Koha::Schema::Result::Notify; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Notify >+ >+=cut >+ >+__PACKAGE__->table("notifys"); >+ >+=head1 ACCESSORS >+ >+=head2 notify_id >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 itemnumber >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 notify_date >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 notify_send_date >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 notify_level >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 method >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 20 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "notify_id", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "borrowernumber", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "itemnumber", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "notify_date", >+ { data_type => "date", is_nullable => 1 }, >+ "notify_send_date", >+ { data_type => "date", is_nullable => 1 }, >+ "notify_level", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "method", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 20 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ldEIateKiL5a9392TykxWA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Nozebra.pm b/Koha/Schema/Result/Nozebra.pm >new file mode 100644 >index 0000000..b7a24b0 >--- /dev/null >+++ b/Koha/Schema/Result/Nozebra.pm >@@ -0,0 +1,64 @@ >+package Koha::Schema::Result::Nozebra; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Nozebra >+ >+=cut >+ >+__PACKAGE__->table("nozebra"); >+ >+=head1 ACCESSORS >+ >+=head2 server >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 20 >+ >+=head2 indexname >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 40 >+ >+=head2 value >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 250 >+ >+=head2 biblionumbers >+ >+ data_type: 'longtext' >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "server", >+ { data_type => "varchar", is_nullable => 0, size => 20 }, >+ "indexname", >+ { data_type => "varchar", is_nullable => 0, size => 40 }, >+ "value", >+ { data_type => "varchar", is_nullable => 0, size => 250 }, >+ "biblionumbers", >+ { data_type => "longtext", is_nullable => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HEbJLtO1Tpyvy9/w8dnS2w >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/OaiSet.pm b/Koha/Schema/Result/OaiSet.pm >new file mode 100644 >index 0000000..c98d6d9 >--- /dev/null >+++ b/Koha/Schema/Result/OaiSet.pm >@@ -0,0 +1,106 @@ >+package Koha::Schema::Result::OaiSet; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::OaiSet >+ >+=cut >+ >+__PACKAGE__->table("oai_sets"); >+ >+=head1 ACCESSORS >+ >+=head2 id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 spec >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 80 >+ >+=head2 name >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 80 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "spec", >+ { data_type => "varchar", is_nullable => 0, size => 80 }, >+ "name", >+ { data_type => "varchar", is_nullable => 0, size => 80 }, >+); >+__PACKAGE__->set_primary_key("id"); >+__PACKAGE__->add_unique_constraint("spec", ["spec"]); >+ >+=head1 RELATIONS >+ >+=head2 oai_sets_biblios >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::OaiSetsBiblio> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "oai_sets_biblios", >+ "Koha::Schema::Result::OaiSetsBiblio", >+ { "foreign.set_id" => "self.id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 oai_sets_descriptions >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::OaiSetsDescription> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "oai_sets_descriptions", >+ "Koha::Schema::Result::OaiSetsDescription", >+ { "foreign.set_id" => "self.id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 oai_sets_mappings >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::OaiSetsMapping> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "oai_sets_mappings", >+ "Koha::Schema::Result::OaiSetsMapping", >+ { "foreign.set_id" => "self.id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HbNoD2MpVTh5RyvbUZYizA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/OaiSetsBiblio.pm b/Koha/Schema/Result/OaiSetsBiblio.pm >new file mode 100644 >index 0000000..9f6811b >--- /dev/null >+++ b/Koha/Schema/Result/OaiSetsBiblio.pm >@@ -0,0 +1,82 @@ >+package Koha::Schema::Result::OaiSetsBiblio; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::OaiSetsBiblio >+ >+=cut >+ >+__PACKAGE__->table("oai_sets_biblios"); >+ >+=head1 ACCESSORS >+ >+=head2 biblionumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 set_id >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "biblionumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "set_id", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("biblionumber", "set_id"); >+ >+=head1 RELATIONS >+ >+=head2 biblionumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Biblio> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "biblionumber", >+ "Koha::Schema::Result::Biblio", >+ { biblionumber => "biblionumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 set >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::OaiSet> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "set", >+ "Koha::Schema::Result::OaiSet", >+ { id => "set_id" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UkR8n4x6yZOGCMP10KvnRg >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/OaiSetsDescription.pm b/Koha/Schema/Result/OaiSetsDescription.pm >new file mode 100644 >index 0000000..3a81254 >--- /dev/null >+++ b/Koha/Schema/Result/OaiSetsDescription.pm >@@ -0,0 +1,66 @@ >+package Koha::Schema::Result::OaiSetsDescription; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::OaiSetsDescription >+ >+=cut >+ >+__PACKAGE__->table("oai_sets_descriptions"); >+ >+=head1 ACCESSORS >+ >+=head2 set_id >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 description >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 255 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "set_id", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "description", >+ { data_type => "varchar", is_nullable => 0, size => 255 }, >+); >+ >+=head1 RELATIONS >+ >+=head2 set >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::OaiSet> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "set", >+ "Koha::Schema::Result::OaiSet", >+ { id => "set_id" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aOzHC9btK44D6oF9qhpidQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/OaiSetsMapping.pm b/Koha/Schema/Result/OaiSetsMapping.pm >new file mode 100644 >index 0000000..53b3f61 >--- /dev/null >+++ b/Koha/Schema/Result/OaiSetsMapping.pm >@@ -0,0 +1,82 @@ >+package Koha::Schema::Result::OaiSetsMapping; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::OaiSetsMapping >+ >+=cut >+ >+__PACKAGE__->table("oai_sets_mappings"); >+ >+=head1 ACCESSORS >+ >+=head2 set_id >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 marcfield >+ >+ data_type: 'char' >+ is_nullable: 0 >+ size: 3 >+ >+=head2 marcsubfield >+ >+ data_type: 'char' >+ is_nullable: 0 >+ size: 1 >+ >+=head2 marcvalue >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 80 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "set_id", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "marcfield", >+ { data_type => "char", is_nullable => 0, size => 3 }, >+ "marcsubfield", >+ { data_type => "char", is_nullable => 0, size => 1 }, >+ "marcvalue", >+ { data_type => "varchar", is_nullable => 0, size => 80 }, >+); >+ >+=head1 RELATIONS >+ >+=head2 set >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::OaiSet> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "set", >+ "Koha::Schema::Result::OaiSet", >+ { id => "set_id" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vWEr0nzPAHZAmjsA2NAaQQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/OldIssue.pm b/Koha/Schema/Result/OldIssue.pm >new file mode 100644 >index 0000000..40c1bbc >--- /dev/null >+++ b/Koha/Schema/Result/OldIssue.pm >@@ -0,0 +1,152 @@ >+package Koha::Schema::Result::OldIssue; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::OldIssue >+ >+=cut >+ >+__PACKAGE__->table("old_issues"); >+ >+=head1 ACCESSORS >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+=head2 itemnumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+=head2 date_due >+ >+ data_type: 'datetime' >+ is_nullable: 1 >+ >+=head2 branchcode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 issuingbranch >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 18 >+ >+=head2 returndate >+ >+ data_type: 'datetime' >+ is_nullable: 1 >+ >+=head2 lastreneweddate >+ >+ data_type: 'datetime' >+ is_nullable: 1 >+ >+=head2 return >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 4 >+ >+=head2 renewals >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 timestamp >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=head2 issuedate >+ >+ data_type: 'datetime' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "borrowernumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, >+ "itemnumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, >+ "date_due", >+ { data_type => "datetime", is_nullable => 1 }, >+ "branchcode", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "issuingbranch", >+ { data_type => "varchar", is_nullable => 1, size => 18 }, >+ "returndate", >+ { data_type => "datetime", is_nullable => 1 }, >+ "lastreneweddate", >+ { data_type => "datetime", is_nullable => 1 }, >+ "return", >+ { data_type => "varchar", is_nullable => 1, size => 4 }, >+ "renewals", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "timestamp", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+ "issuedate", >+ { data_type => "datetime", is_nullable => 1 }, >+); >+ >+=head1 RELATIONS >+ >+=head2 borrowernumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "borrowernumber", >+ "Koha::Schema::Result::Borrower", >+ { borrowernumber => "borrowernumber" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 itemnumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Item> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "itemnumber", >+ "Koha::Schema::Result::Item", >+ { itemnumber => "itemnumber" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OmCAF2QYzR59eHr1w51seA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/OldReserve.pm b/Koha/Schema/Result/OldReserve.pm >new file mode 100644 >index 0000000..20493af >--- /dev/null >+++ b/Koha/Schema/Result/OldReserve.pm >@@ -0,0 +1,226 @@ >+package Koha::Schema::Result::OldReserve; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::OldReserve >+ >+=cut >+ >+__PACKAGE__->table("old_reserves"); >+ >+=head1 ACCESSORS >+ >+=head2 reserve_id >+ >+ data_type: 'integer' >+ is_nullable: 0 >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+=head2 reservedate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 biblionumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+=head2 constrainttype >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 1 >+ >+=head2 branchcode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 notificationdate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 reminderdate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 cancellationdate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 reservenotes >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 priority >+ >+ data_type: 'smallint' >+ is_nullable: 1 >+ >+=head2 found >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 1 >+ >+=head2 timestamp >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=head2 itemnumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+=head2 waitingdate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 expirationdate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 lowestpriority >+ >+ data_type: 'tinyint' >+ is_nullable: 0 >+ >+=head2 suspend >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 suspend_until >+ >+ data_type: 'datetime' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "reserve_id", >+ { data_type => "integer", is_nullable => 0 }, >+ "borrowernumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, >+ "reservedate", >+ { data_type => "date", is_nullable => 1 }, >+ "biblionumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, >+ "constrainttype", >+ { data_type => "varchar", is_nullable => 1, size => 1 }, >+ "branchcode", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "notificationdate", >+ { data_type => "date", is_nullable => 1 }, >+ "reminderdate", >+ { data_type => "date", is_nullable => 1 }, >+ "cancellationdate", >+ { data_type => "date", is_nullable => 1 }, >+ "reservenotes", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "priority", >+ { data_type => "smallint", is_nullable => 1 }, >+ "found", >+ { data_type => "varchar", is_nullable => 1, size => 1 }, >+ "timestamp", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+ "itemnumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, >+ "waitingdate", >+ { data_type => "date", is_nullable => 1 }, >+ "expirationdate", >+ { data_type => "date", is_nullable => 1 }, >+ "lowestpriority", >+ { data_type => "tinyint", is_nullable => 0 }, >+ "suspend", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "suspend_until", >+ { data_type => "datetime", is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("reserve_id"); >+ >+=head1 RELATIONS >+ >+=head2 borrowernumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "borrowernumber", >+ "Koha::Schema::Result::Borrower", >+ { borrowernumber => "borrowernumber" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 biblionumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Biblio> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "biblionumber", >+ "Koha::Schema::Result::Biblio", >+ { biblionumber => "biblionumber" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 itemnumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Item> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "itemnumber", >+ "Koha::Schema::Result::Item", >+ { itemnumber => "itemnumber" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1b1FcIuOJ5ZRU2apc6swkQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/OpacNews.pm b/Koha/Schema/Result/OpacNews.pm >new file mode 100644 >index 0000000..eafc7e1 >--- /dev/null >+++ b/Koha/Schema/Result/OpacNews.pm >@@ -0,0 +1,100 @@ >+package Koha::Schema::Result::OpacNews; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::OpacNews >+ >+=cut >+ >+__PACKAGE__->table("opac_news"); >+ >+=head1 ACCESSORS >+ >+=head2 idnew >+ >+ data_type: 'integer' >+ extra: {unsigned => 1} >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 title >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 250 >+ >+=head2 new >+ >+ accessor: undef >+ data_type: 'text' >+ is_nullable: 0 >+ >+=head2 lang >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 25 >+ >+=head2 timestamp >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=head2 expirationdate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 number >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "idnew", >+ { >+ data_type => "integer", >+ extra => { unsigned => 1 }, >+ is_auto_increment => 1, >+ is_nullable => 0, >+ }, >+ "title", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 250 }, >+ "new", >+ { accessor => undef, data_type => "text", is_nullable => 0 }, >+ "lang", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 25 }, >+ "timestamp", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+ "expirationdate", >+ { data_type => "date", is_nullable => 1 }, >+ "number", >+ { data_type => "integer", is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("idnew"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8SrbfmWUXmR8I47YLpPUrQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Overduerule.pm b/Koha/Schema/Result/Overduerule.pm >new file mode 100644 >index 0000000..be568fd >--- /dev/null >+++ b/Koha/Schema/Result/Overduerule.pm >@@ -0,0 +1,123 @@ >+package Koha::Schema::Result::Overduerule; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Overduerule >+ >+=cut >+ >+__PACKAGE__->table("overduerules"); >+ >+=head1 ACCESSORS >+ >+=head2 branchcode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=head2 categorycode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=head2 delay1 >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 letter1 >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 20 >+ >+=head2 debarred1 >+ >+ data_type: 'varchar' >+ default_value: 0 >+ is_nullable: 1 >+ size: 1 >+ >+=head2 delay2 >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 debarred2 >+ >+ data_type: 'varchar' >+ default_value: 0 >+ is_nullable: 1 >+ size: 1 >+ >+=head2 letter2 >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 20 >+ >+=head2 delay3 >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 letter3 >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 20 >+ >+=head2 debarred3 >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "branchcode", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+ "categorycode", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+ "delay1", >+ { data_type => "integer", is_nullable => 1 }, >+ "letter1", >+ { data_type => "varchar", is_nullable => 1, size => 20 }, >+ "debarred1", >+ { data_type => "varchar", default_value => 0, is_nullable => 1, size => 1 }, >+ "delay2", >+ { data_type => "integer", is_nullable => 1 }, >+ "debarred2", >+ { data_type => "varchar", default_value => 0, is_nullable => 1, size => 1 }, >+ "letter2", >+ { data_type => "varchar", is_nullable => 1, size => 20 }, >+ "delay3", >+ { data_type => "integer", is_nullable => 1 }, >+ "letter3", >+ { data_type => "varchar", is_nullable => 1, size => 20 }, >+ "debarred3", >+ { data_type => "integer", default_value => 0, is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("branchcode", "categorycode"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+T3rLwxGA8EmTYnW2sbxQA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Patroncard.pm b/Koha/Schema/Result/Patroncard.pm >new file mode 100644 >index 0000000..9332cf3 >--- /dev/null >+++ b/Koha/Schema/Result/Patroncard.pm >@@ -0,0 +1,88 @@ >+package Koha::Schema::Result::Patroncard; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Patroncard >+ >+=cut >+ >+__PACKAGE__->table("patroncards"); >+ >+=head1 ACCESSORS >+ >+=head2 cardid >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 batch_id >+ >+ data_type: 'varchar' >+ default_value: 1 >+ is_nullable: 0 >+ size: 10 >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 timestamp >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "cardid", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "batch_id", >+ { data_type => "varchar", default_value => 1, is_nullable => 0, size => 10 }, >+ "borrowernumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "timestamp", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+); >+__PACKAGE__->set_primary_key("cardid"); >+ >+=head1 RELATIONS >+ >+=head2 borrowernumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "borrowernumber", >+ "Koha::Schema::Result::Borrower", >+ { borrowernumber => "borrowernumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:b/bNxn2Ca/bwRUjZjkoYBg >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Patronimage.pm b/Koha/Schema/Result/Patronimage.pm >new file mode 100644 >index 0000000..8b1cb4d >--- /dev/null >+++ b/Koha/Schema/Result/Patronimage.pm >@@ -0,0 +1,75 @@ >+package Koha::Schema::Result::Patronimage; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Patronimage >+ >+=cut >+ >+__PACKAGE__->table("patronimage"); >+ >+=head1 ACCESSORS >+ >+=head2 cardnumber >+ >+ data_type: 'varchar' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 16 >+ >+=head2 mimetype >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 15 >+ >+=head2 imagefile >+ >+ data_type: 'mediumblob' >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "cardnumber", >+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 16 }, >+ "mimetype", >+ { data_type => "varchar", is_nullable => 0, size => 15 }, >+ "imagefile", >+ { data_type => "mediumblob", is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("cardnumber"); >+ >+=head1 RELATIONS >+ >+=head2 cardnumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "cardnumber", >+ "Koha::Schema::Result::Borrower", >+ { cardnumber => "cardnumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uUZssek71kRNmlil85374w >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/PendingOfflineOperation.pm b/Koha/Schema/Result/PendingOfflineOperation.pm >new file mode 100644 >index 0000000..3f4f552 >--- /dev/null >+++ b/Koha/Schema/Result/PendingOfflineOperation.pm >@@ -0,0 +1,94 @@ >+package Koha::Schema::Result::PendingOfflineOperation; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::PendingOfflineOperation >+ >+=cut >+ >+__PACKAGE__->table("pending_offline_operations"); >+ >+=head1 ACCESSORS >+ >+=head2 operationid >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 userid >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 30 >+ >+=head2 branchcode >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 10 >+ >+=head2 timestamp >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=head2 action >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 10 >+ >+=head2 barcode >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 20 >+ >+=head2 cardnumber >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 16 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "operationid", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "userid", >+ { data_type => "varchar", is_nullable => 0, size => 30 }, >+ "branchcode", >+ { data_type => "varchar", is_nullable => 0, size => 10 }, >+ "timestamp", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+ "action", >+ { data_type => "varchar", is_nullable => 0, size => 10 }, >+ "barcode", >+ { data_type => "varchar", is_nullable => 0, size => 20 }, >+ "cardnumber", >+ { data_type => "varchar", is_nullable => 1, size => 16 }, >+); >+__PACKAGE__->set_primary_key("operationid"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PFEH3bfCYOG8Q3dOX/IQ5w >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Permission.pm b/Koha/Schema/Result/Permission.pm >new file mode 100644 >index 0000000..6a356e5 >--- /dev/null >+++ b/Koha/Schema/Result/Permission.pm >@@ -0,0 +1,100 @@ >+package Koha::Schema::Result::Permission; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Permission >+ >+=cut >+ >+__PACKAGE__->table("permissions"); >+ >+=head1 ACCESSORS >+ >+=head2 module_bit >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 code >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 64 >+ >+=head2 description >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "module_bit", >+ { >+ data_type => "integer", >+ default_value => 0, >+ is_foreign_key => 1, >+ is_nullable => 0, >+ }, >+ "code", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 64 }, >+ "description", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+); >+__PACKAGE__->set_primary_key("module_bit", "code"); >+ >+=head1 RELATIONS >+ >+=head2 module_bit >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Userflag> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "module_bit", >+ "Koha::Schema::Result::Userflag", >+ { bit => "module_bit" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 user_permissions >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::UserPermission> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "user_permissions", >+ "Koha::Schema::Result::UserPermission", >+ { >+ "foreign.code" => "self.code", >+ "foreign.module_bit" => "self.module_bit", >+ }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7SlWDbIpDYaLcMUnNAH0tA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Printer.pm b/Koha/Schema/Result/Printer.pm >new file mode 100644 >index 0000000..6849ab4 >--- /dev/null >+++ b/Koha/Schema/Result/Printer.pm >@@ -0,0 +1,59 @@ >+package Koha::Schema::Result::Printer; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Printer >+ >+=cut >+ >+__PACKAGE__->table("printers"); >+ >+=head1 ACCESSORS >+ >+=head2 printername >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 40 >+ >+=head2 printqueue >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 20 >+ >+=head2 printtype >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 20 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "printername", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 40 }, >+ "printqueue", >+ { data_type => "varchar", is_nullable => 1, size => 20 }, >+ "printtype", >+ { data_type => "varchar", is_nullable => 1, size => 20 }, >+); >+__PACKAGE__->set_primary_key("printername"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:p7tep/srWDawkdyyilJbOw >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/PrintersProfile.pm b/Koha/Schema/Result/PrintersProfile.pm >new file mode 100644 >index 0000000..69d8eb0 >--- /dev/null >+++ b/Koha/Schema/Result/PrintersProfile.pm >@@ -0,0 +1,137 @@ >+package Koha::Schema::Result::PrintersProfile; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::PrintersProfile >+ >+=cut >+ >+__PACKAGE__->table("printers_profile"); >+ >+=head1 ACCESSORS >+ >+=head2 profile_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 printer_name >+ >+ data_type: 'varchar' >+ default_value: 'Default Printer' >+ is_nullable: 0 >+ size: 40 >+ >+=head2 template_id >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 paper_bin >+ >+ data_type: 'varchar' >+ default_value: 'Bypass' >+ is_nullable: 0 >+ size: 20 >+ >+=head2 offset_horz >+ >+ data_type: 'float' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 offset_vert >+ >+ data_type: 'float' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 creep_horz >+ >+ data_type: 'float' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 creep_vert >+ >+ data_type: 'float' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 units >+ >+ data_type: 'char' >+ default_value: 'POINT' >+ is_nullable: 0 >+ size: 20 >+ >+=head2 creator >+ >+ data_type: 'char' >+ default_value: 'Labels' >+ is_nullable: 0 >+ size: 15 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "profile_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "printer_name", >+ { >+ data_type => "varchar", >+ default_value => "Default Printer", >+ is_nullable => 0, >+ size => 40, >+ }, >+ "template_id", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "paper_bin", >+ { >+ data_type => "varchar", >+ default_value => "Bypass", >+ is_nullable => 0, >+ size => 20, >+ }, >+ "offset_horz", >+ { data_type => "float", default_value => 0, is_nullable => 0 }, >+ "offset_vert", >+ { data_type => "float", default_value => 0, is_nullable => 0 }, >+ "creep_horz", >+ { data_type => "float", default_value => 0, is_nullable => 0 }, >+ "creep_vert", >+ { data_type => "float", default_value => 0, is_nullable => 0 }, >+ "units", >+ { data_type => "char", default_value => "POINT", is_nullable => 0, size => 20 }, >+ "creator", >+ { >+ data_type => "char", >+ default_value => "Labels", >+ is_nullable => 0, >+ size => 15, >+ }, >+); >+__PACKAGE__->set_primary_key("profile_id"); >+__PACKAGE__->add_unique_constraint( >+ "printername", >+ ["printer_name", "template_id", "paper_bin", "creator"], >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1hyMy9lC23Te5l2gW++DVA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Quote.pm b/Koha/Schema/Result/Quote.pm >new file mode 100644 >index 0000000..521274a >--- /dev/null >+++ b/Koha/Schema/Result/Quote.pm >@@ -0,0 +1,63 @@ >+package Koha::Schema::Result::Quote; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Quote >+ >+=cut >+ >+__PACKAGE__->table("quotes"); >+ >+=head1 ACCESSORS >+ >+=head2 id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 source >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 text >+ >+ data_type: 'mediumtext' >+ is_nullable: 0 >+ >+=head2 timestamp >+ >+ data_type: 'datetime' >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "source", >+ { data_type => "text", is_nullable => 1 }, >+ "text", >+ { data_type => "mediumtext", is_nullable => 0 }, >+ "timestamp", >+ { data_type => "datetime", is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("id"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hvVwAMhaq9dIxuEMbWPNZA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Rating.pm b/Koha/Schema/Result/Rating.pm >new file mode 100644 >index 0000000..1782f7e >--- /dev/null >+++ b/Koha/Schema/Result/Rating.pm >@@ -0,0 +1,101 @@ >+package Koha::Schema::Result::Rating; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Rating >+ >+=cut >+ >+__PACKAGE__->table("ratings"); >+ >+=head1 ACCESSORS >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 biblionumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 rating_value >+ >+ data_type: 'tinyint' >+ is_nullable: 0 >+ >+=head2 timestamp >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "borrowernumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "biblionumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "rating_value", >+ { data_type => "tinyint", is_nullable => 0 }, >+ "timestamp", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+); >+__PACKAGE__->set_primary_key("borrowernumber", "biblionumber"); >+ >+=head1 RELATIONS >+ >+=head2 borrowernumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "borrowernumber", >+ "Koha::Schema::Result::Borrower", >+ { borrowernumber => "borrowernumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 biblionumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Biblio> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "biblionumber", >+ "Koha::Schema::Result::Biblio", >+ { biblionumber => "biblionumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oLsBtL2RwbArN1s9DYlrow >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/RepeatableHoliday.pm b/Koha/Schema/Result/RepeatableHoliday.pm >new file mode 100644 >index 0000000..304ec0e >--- /dev/null >+++ b/Koha/Schema/Result/RepeatableHoliday.pm >@@ -0,0 +1,88 @@ >+package Koha::Schema::Result::RepeatableHoliday; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::RepeatableHoliday >+ >+=cut >+ >+__PACKAGE__->table("repeatable_holidays"); >+ >+=head1 ACCESSORS >+ >+=head2 id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 branchcode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=head2 weekday >+ >+ data_type: 'smallint' >+ is_nullable: 1 >+ >+=head2 day >+ >+ data_type: 'smallint' >+ is_nullable: 1 >+ >+=head2 month >+ >+ data_type: 'smallint' >+ is_nullable: 1 >+ >+=head2 title >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 50 >+ >+=head2 description >+ >+ data_type: 'text' >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "branchcode", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+ "weekday", >+ { data_type => "smallint", is_nullable => 1 }, >+ "day", >+ { data_type => "smallint", is_nullable => 1 }, >+ "month", >+ { data_type => "smallint", is_nullable => 1 }, >+ "title", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 50 }, >+ "description", >+ { data_type => "text", is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("id"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9CaAbUmcE7O8TT5NZivX1Q >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/ReportsDictionary.pm b/Koha/Schema/Result/ReportsDictionary.pm >new file mode 100644 >index 0000000..b6f64c2 >--- /dev/null >+++ b/Koha/Schema/Result/ReportsDictionary.pm >@@ -0,0 +1,86 @@ >+package Koha::Schema::Result::ReportsDictionary; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::ReportsDictionary >+ >+=cut >+ >+__PACKAGE__->table("reports_dictionary"); >+ >+=head1 ACCESSORS >+ >+=head2 id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 name >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 description >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 date_created >+ >+ data_type: 'datetime' >+ is_nullable: 1 >+ >+=head2 date_modified >+ >+ data_type: 'datetime' >+ is_nullable: 1 >+ >+=head2 saved_sql >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 report_area >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 6 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "name", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "description", >+ { data_type => "text", is_nullable => 1 }, >+ "date_created", >+ { data_type => "datetime", is_nullable => 1 }, >+ "date_modified", >+ { data_type => "datetime", is_nullable => 1 }, >+ "saved_sql", >+ { data_type => "text", is_nullable => 1 }, >+ "report_area", >+ { data_type => "varchar", is_nullable => 1, size => 6 }, >+); >+__PACKAGE__->set_primary_key("id"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ko3D4HyI5Uspi17YOtowbQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Reserve.pm b/Koha/Schema/Result/Reserve.pm >new file mode 100644 >index 0000000..6a1f886 >--- /dev/null >+++ b/Koha/Schema/Result/Reserve.pm >@@ -0,0 +1,255 @@ >+package Koha::Schema::Result::Reserve; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Reserve >+ >+=cut >+ >+__PACKAGE__->table("reserves"); >+ >+=head1 ACCESSORS >+ >+=head2 reserve_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 reservedate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 biblionumber >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 constrainttype >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 1 >+ >+=head2 branchcode >+ >+ data_type: 'varchar' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ size: 10 >+ >+=head2 notificationdate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 reminderdate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 cancellationdate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 reservenotes >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 priority >+ >+ data_type: 'smallint' >+ is_nullable: 1 >+ >+=head2 found >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 1 >+ >+=head2 timestamp >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=head2 itemnumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+=head2 waitingdate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 expirationdate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 lowestpriority >+ >+ data_type: 'tinyint' >+ is_nullable: 0 >+ >+=head2 suspend >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 suspend_until >+ >+ data_type: 'datetime' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "reserve_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "borrowernumber", >+ { >+ data_type => "integer", >+ default_value => 0, >+ is_foreign_key => 1, >+ is_nullable => 0, >+ }, >+ "reservedate", >+ { data_type => "date", is_nullable => 1 }, >+ "biblionumber", >+ { >+ data_type => "integer", >+ default_value => 0, >+ is_foreign_key => 1, >+ is_nullable => 0, >+ }, >+ "constrainttype", >+ { data_type => "varchar", is_nullable => 1, size => 1 }, >+ "branchcode", >+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, >+ "notificationdate", >+ { data_type => "date", is_nullable => 1 }, >+ "reminderdate", >+ { data_type => "date", is_nullable => 1 }, >+ "cancellationdate", >+ { data_type => "date", is_nullable => 1 }, >+ "reservenotes", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "priority", >+ { data_type => "smallint", is_nullable => 1 }, >+ "found", >+ { data_type => "varchar", is_nullable => 1, size => 1 }, >+ "timestamp", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+ "itemnumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, >+ "waitingdate", >+ { data_type => "date", is_nullable => 1 }, >+ "expirationdate", >+ { data_type => "date", is_nullable => 1 }, >+ "lowestpriority", >+ { data_type => "tinyint", is_nullable => 0 }, >+ "suspend", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "suspend_until", >+ { data_type => "datetime", is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("reserve_id"); >+ >+=head1 RELATIONS >+ >+=head2 borrowernumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "borrowernumber", >+ "Koha::Schema::Result::Borrower", >+ { borrowernumber => "borrowernumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 biblionumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Biblio> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "biblionumber", >+ "Koha::Schema::Result::Biblio", >+ { biblionumber => "biblionumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 itemnumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Item> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "itemnumber", >+ "Koha::Schema::Result::Item", >+ { itemnumber => "itemnumber" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 branchcode >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Branch> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "branchcode", >+ "Koha::Schema::Result::Branch", >+ { branchcode => "branchcode" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+8kr13IjL7oHVHRXQzTReA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Reserveconstraint.pm b/Koha/Schema/Result/Reserveconstraint.pm >new file mode 100644 >index 0000000..a5da942 >--- /dev/null >+++ b/Koha/Schema/Result/Reserveconstraint.pm >@@ -0,0 +1,75 @@ >+package Koha::Schema::Result::Reserveconstraint; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Reserveconstraint >+ >+=cut >+ >+__PACKAGE__->table("reserveconstraints"); >+ >+=head1 ACCESSORS >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 reservedate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 biblionumber >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 biblioitemnumber >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 timestamp >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "borrowernumber", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "reservedate", >+ { data_type => "date", is_nullable => 1 }, >+ "biblionumber", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "biblioitemnumber", >+ { data_type => "integer", is_nullable => 1 }, >+ "timestamp", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yniuV8y2QVTDUjDCz/Y3Sg >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Review.pm b/Koha/Schema/Result/Review.pm >new file mode 100644 >index 0000000..4eb6301 >--- /dev/null >+++ b/Koha/Schema/Result/Review.pm >@@ -0,0 +1,111 @@ >+package Koha::Schema::Result::Review; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Review >+ >+=cut >+ >+__PACKAGE__->table("reviews"); >+ >+=head1 ACCESSORS >+ >+=head2 reviewid >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+=head2 biblionumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+=head2 review >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 approved >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 datereviewed >+ >+ data_type: 'datetime' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "reviewid", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "borrowernumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, >+ "biblionumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, >+ "review", >+ { data_type => "text", is_nullable => 1 }, >+ "approved", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "datereviewed", >+ { data_type => "datetime", is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("reviewid"); >+ >+=head1 RELATIONS >+ >+=head2 borrowernumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "borrowernumber", >+ "Koha::Schema::Result::Borrower", >+ { borrowernumber => "borrowernumber" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 biblionumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Biblio> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "biblionumber", >+ "Koha::Schema::Result::Biblio", >+ { biblionumber => "biblionumber" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Wh7pS4fMj7YtJDl6GJ94lA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Roadtype.pm b/Koha/Schema/Result/Roadtype.pm >new file mode 100644 >index 0000000..3fc4da6 >--- /dev/null >+++ b/Koha/Schema/Result/Roadtype.pm >@@ -0,0 +1,51 @@ >+package Koha::Schema::Result::Roadtype; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Roadtype >+ >+=cut >+ >+__PACKAGE__->table("roadtype"); >+ >+=head1 ACCESSORS >+ >+=head2 roadtypeid >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 road_type >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 100 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "roadtypeid", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "road_type", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 }, >+); >+__PACKAGE__->set_primary_key("roadtypeid"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wy1V1m2xfTm4hD+FLRHh/g >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/SavedReport.pm b/Koha/Schema/Result/SavedReport.pm >new file mode 100644 >index 0000000..a2a2329 >--- /dev/null >+++ b/Koha/Schema/Result/SavedReport.pm >@@ -0,0 +1,63 @@ >+package Koha::Schema::Result::SavedReport; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::SavedReport >+ >+=cut >+ >+__PACKAGE__->table("saved_reports"); >+ >+=head1 ACCESSORS >+ >+=head2 id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 report_id >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 report >+ >+ data_type: 'longtext' >+ is_nullable: 1 >+ >+=head2 date_run >+ >+ data_type: 'datetime' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "report_id", >+ { data_type => "integer", is_nullable => 1 }, >+ "report", >+ { data_type => "longtext", is_nullable => 1 }, >+ "date_run", >+ { data_type => "datetime", is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("id"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sChe1C7Uh2kfpYP40UItJQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/SavedSql.pm b/Koha/Schema/Result/SavedSql.pm >new file mode 100644 >index 0000000..076a064 >--- /dev/null >+++ b/Koha/Schema/Result/SavedSql.pm >@@ -0,0 +1,140 @@ >+package Koha::Schema::Result::SavedSql; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::SavedSql >+ >+=cut >+ >+__PACKAGE__->table("saved_sql"); >+ >+=head1 ACCESSORS >+ >+=head2 id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 date_created >+ >+ data_type: 'datetime' >+ is_nullable: 1 >+ >+=head2 last_modified >+ >+ data_type: 'datetime' >+ is_nullable: 1 >+ >+=head2 savedsql >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 last_run >+ >+ data_type: 'datetime' >+ is_nullable: 1 >+ >+=head2 report_name >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 type >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 notes >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 cache_expiry >+ >+ data_type: 'integer' >+ default_value: 300 >+ is_nullable: 0 >+ >+=head2 public >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 report_area >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 6 >+ >+=head2 report_group >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 80 >+ >+=head2 report_subgroup >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 80 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "borrowernumber", >+ { data_type => "integer", is_nullable => 1 }, >+ "date_created", >+ { data_type => "datetime", is_nullable => 1 }, >+ "last_modified", >+ { data_type => "datetime", is_nullable => 1 }, >+ "savedsql", >+ { data_type => "text", is_nullable => 1 }, >+ "last_run", >+ { data_type => "datetime", is_nullable => 1 }, >+ "report_name", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "type", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "notes", >+ { data_type => "text", is_nullable => 1 }, >+ "cache_expiry", >+ { data_type => "integer", default_value => 300, is_nullable => 0 }, >+ "public", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "report_area", >+ { data_type => "varchar", is_nullable => 1, size => 6 }, >+ "report_group", >+ { data_type => "varchar", is_nullable => 1, size => 80 }, >+ "report_subgroup", >+ { data_type => "varchar", is_nullable => 1, size => 80 }, >+); >+__PACKAGE__->set_primary_key("id"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1R30mLFqauqtbEo86gnInw >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/SearchHistory.pm b/Koha/Schema/Result/SearchHistory.pm >new file mode 100644 >index 0000000..f27fc80 >--- /dev/null >+++ b/Koha/Schema/Result/SearchHistory.pm >@@ -0,0 +1,82 @@ >+package Koha::Schema::Result::SearchHistory; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::SearchHistory >+ >+=cut >+ >+__PACKAGE__->table("search_history"); >+ >+=head1 ACCESSORS >+ >+=head2 userid >+ >+ data_type: 'integer' >+ is_nullable: 0 >+ >+=head2 sessionid >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 32 >+ >+=head2 query_desc >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 255 >+ >+=head2 query_cgi >+ >+ data_type: 'text' >+ is_nullable: 0 >+ >+=head2 total >+ >+ data_type: 'integer' >+ is_nullable: 0 >+ >+=head2 time >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "userid", >+ { data_type => "integer", is_nullable => 0 }, >+ "sessionid", >+ { data_type => "varchar", is_nullable => 0, size => 32 }, >+ "query_desc", >+ { data_type => "varchar", is_nullable => 0, size => 255 }, >+ "query_cgi", >+ { data_type => "text", is_nullable => 0 }, >+ "total", >+ { data_type => "integer", is_nullable => 0 }, >+ "time", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:drsMVfTISlgQofUC0W7btg >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Serial.pm b/Koha/Schema/Result/Serial.pm >new file mode 100644 >index 0000000..b184e07 >--- /dev/null >+++ b/Koha/Schema/Result/Serial.pm >@@ -0,0 +1,136 @@ >+package Koha::Schema::Result::Serial; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Serial >+ >+=cut >+ >+__PACKAGE__->table("serial"); >+ >+=head1 ACCESSORS >+ >+=head2 serialid >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 biblionumber >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 100 >+ >+=head2 subscriptionid >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 100 >+ >+=head2 serialseq >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 100 >+ >+=head2 status >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 planneddate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 notes >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 publisheddate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 itemnumber >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 claimdate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 routingnotes >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "serialid", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "biblionumber", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 }, >+ "subscriptionid", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 }, >+ "serialseq", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 }, >+ "status", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "planneddate", >+ { data_type => "date", is_nullable => 1 }, >+ "notes", >+ { data_type => "text", is_nullable => 1 }, >+ "publisheddate", >+ { data_type => "date", is_nullable => 1 }, >+ "itemnumber", >+ { data_type => "text", is_nullable => 1 }, >+ "claimdate", >+ { data_type => "date", is_nullable => 1 }, >+ "routingnotes", >+ { data_type => "text", is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("serialid"); >+ >+=head1 RELATIONS >+ >+=head2 serialitems >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Serialitem> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "serialitems", >+ "Koha::Schema::Result::Serialitem", >+ { "foreign.serialid" => "self.serialid" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PqzibMlED9bg0uOONSBnmg >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Serialitem.pm b/Koha/Schema/Result/Serialitem.pm >new file mode 100644 >index 0000000..fc23ea5 >--- /dev/null >+++ b/Koha/Schema/Result/Serialitem.pm >@@ -0,0 +1,82 @@ >+package Koha::Schema::Result::Serialitem; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Serialitem >+ >+=cut >+ >+__PACKAGE__->table("serialitems"); >+ >+=head1 ACCESSORS >+ >+=head2 itemnumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 serialid >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "itemnumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "serialid", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+); >+__PACKAGE__->add_unique_constraint("serialitemsidx", ["itemnumber"]); >+ >+=head1 RELATIONS >+ >+=head2 serialid >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Serial> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "serialid", >+ "Koha::Schema::Result::Serial", >+ { serialid => "serialid" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 itemnumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Item> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "itemnumber", >+ "Koha::Schema::Result::Item", >+ { itemnumber => "itemnumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:A1aGwJJeHrbyhAAtZkFl7g >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/ServicesThrottle.pm b/Koha/Schema/Result/ServicesThrottle.pm >new file mode 100644 >index 0000000..38d02d8 >--- /dev/null >+++ b/Koha/Schema/Result/ServicesThrottle.pm >@@ -0,0 +1,51 @@ >+package Koha::Schema::Result::ServicesThrottle; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::ServicesThrottle >+ >+=cut >+ >+__PACKAGE__->table("services_throttle"); >+ >+=head1 ACCESSORS >+ >+=head2 service_type >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=head2 service_count >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 45 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "service_type", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+ "service_count", >+ { data_type => "varchar", is_nullable => 1, size => 45 }, >+); >+__PACKAGE__->set_primary_key("service_type"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7zRTP55443DiLZKCWNjYug >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Session.pm b/Koha/Schema/Result/Session.pm >new file mode 100644 >index 0000000..06aecaa >--- /dev/null >+++ b/Koha/Schema/Result/Session.pm >@@ -0,0 +1,49 @@ >+package Koha::Schema::Result::Session; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Session >+ >+=cut >+ >+__PACKAGE__->table("sessions"); >+ >+=head1 ACCESSORS >+ >+=head2 id >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 32 >+ >+=head2 a_session >+ >+ data_type: 'text' >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "id", >+ { data_type => "varchar", is_nullable => 0, size => 32 }, >+ "a_session", >+ { data_type => "text", is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("id"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WGXVdUE5P5R+omVu4a+t/g >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/SocialData.pm b/Koha/Schema/Result/SocialData.pm >new file mode 100644 >index 0000000..ad402f3 >--- /dev/null >+++ b/Koha/Schema/Result/SocialData.pm >@@ -0,0 +1,86 @@ >+package Koha::Schema::Result::SocialData; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::SocialData >+ >+=cut >+ >+__PACKAGE__->table("social_data"); >+ >+=head1 ACCESSORS >+ >+=head2 isbn >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 30 >+ >+=head2 num_critics >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 num_critics_pro >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 num_quotations >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 num_videos >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 score_avg >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [5,2] >+ >+=head2 num_scores >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "isbn", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 30 }, >+ "num_critics", >+ { data_type => "integer", is_nullable => 1 }, >+ "num_critics_pro", >+ { data_type => "integer", is_nullable => 1 }, >+ "num_quotations", >+ { data_type => "integer", is_nullable => 1 }, >+ "num_videos", >+ { data_type => "integer", is_nullable => 1 }, >+ "score_avg", >+ { data_type => "decimal", is_nullable => 1, size => [5, 2] }, >+ "num_scores", >+ { data_type => "integer", is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("isbn"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jj5Z4o+iItaaMj9+9ZptTg >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/SpecialHoliday.pm b/Koha/Schema/Result/SpecialHoliday.pm >new file mode 100644 >index 0000000..8be58c3 >--- /dev/null >+++ b/Koha/Schema/Result/SpecialHoliday.pm >@@ -0,0 +1,99 @@ >+package Koha::Schema::Result::SpecialHoliday; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::SpecialHoliday >+ >+=cut >+ >+__PACKAGE__->table("special_holidays"); >+ >+=head1 ACCESSORS >+ >+=head2 id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 branchcode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=head2 day >+ >+ data_type: 'smallint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 month >+ >+ data_type: 'smallint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 year >+ >+ data_type: 'smallint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 isexception >+ >+ data_type: 'smallint' >+ default_value: 1 >+ is_nullable: 0 >+ >+=head2 title >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 50 >+ >+=head2 description >+ >+ data_type: 'text' >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "branchcode", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+ "day", >+ { data_type => "smallint", default_value => 0, is_nullable => 0 }, >+ "month", >+ { data_type => "smallint", default_value => 0, is_nullable => 0 }, >+ "year", >+ { data_type => "smallint", default_value => 0, is_nullable => 0 }, >+ "isexception", >+ { data_type => "smallint", default_value => 1, is_nullable => 0 }, >+ "title", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 50 }, >+ "description", >+ { data_type => "text", is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("id"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IhSBoiyihNmEgIVcGbwZRg >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Statistic.pm b/Koha/Schema/Result/Statistic.pm >new file mode 100644 >index 0000000..d2ffd16 >--- /dev/null >+++ b/Koha/Schema/Result/Statistic.pm >@@ -0,0 +1,124 @@ >+package Koha::Schema::Result::Statistic; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Statistic >+ >+=cut >+ >+__PACKAGE__->table("statistics"); >+ >+=head1 ACCESSORS >+ >+=head2 datetime >+ >+ data_type: 'datetime' >+ is_nullable: 1 >+ >+=head2 branch >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 proccode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 4 >+ >+=head2 value >+ >+ data_type: 'double precision' >+ is_nullable: 1 >+ size: [16,4] >+ >+=head2 type >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 16 >+ >+=head2 other >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 usercode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 itemnumber >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 itemtype >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 associatedborrower >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 ccode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "datetime", >+ { data_type => "datetime", is_nullable => 1 }, >+ "branch", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "proccode", >+ { data_type => "varchar", is_nullable => 1, size => 4 }, >+ "value", >+ { data_type => "double precision", is_nullable => 1, size => [16, 4] }, >+ "type", >+ { data_type => "varchar", is_nullable => 1, size => 16 }, >+ "other", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "usercode", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "itemnumber", >+ { data_type => "integer", is_nullable => 1 }, >+ "itemtype", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "borrowernumber", >+ { data_type => "integer", is_nullable => 1 }, >+ "associatedborrower", >+ { data_type => "integer", is_nullable => 1 }, >+ "ccode", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JYb2c/mWBks4WwV/WDm5RA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Stopword.pm b/Koha/Schema/Result/Stopword.pm >new file mode 100644 >index 0000000..25f51d0 >--- /dev/null >+++ b/Koha/Schema/Result/Stopword.pm >@@ -0,0 +1,41 @@ >+package Koha::Schema::Result::Stopword; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Stopword >+ >+=cut >+ >+__PACKAGE__->table("stopwords"); >+ >+=head1 ACCESSORS >+ >+=head2 word >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "word", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0iOCRqsG2oTw6Djq2O/6+w >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Subscription.pm b/Koha/Schema/Result/Subscription.pm >new file mode 100644 >index 0000000..de6c426 >--- /dev/null >+++ b/Koha/Schema/Result/Subscription.pm >@@ -0,0 +1,451 @@ >+package Koha::Schema::Result::Subscription; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Subscription >+ >+=cut >+ >+__PACKAGE__->table("subscription"); >+ >+=head1 ACCESSORS >+ >+=head2 biblionumber >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 subscriptionid >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 librarian >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 1 >+ size: 100 >+ >+=head2 startdate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 aqbooksellerid >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 cost >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 aqbudgetid >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 weeklength >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 monthlength >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 numberlength >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 periodicity >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 dow >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 1 >+ size: 100 >+ >+=head2 numberingmethod >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 1 >+ size: 100 >+ >+=head2 notes >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 status >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 100 >+ >+=head2 add1 >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 every1 >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 whenmorethan1 >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 setto1 >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 lastvalue1 >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 add2 >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 every2 >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 whenmorethan2 >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 setto2 >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 lastvalue2 >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 add3 >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 every3 >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 innerloop1 >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 innerloop2 >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 innerloop3 >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 whenmorethan3 >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 setto3 >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 lastvalue3 >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 issuesatonce >+ >+ data_type: 'tinyint' >+ default_value: 1 >+ is_nullable: 0 >+ >+=head2 firstacquidate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 manualhistory >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 irregularity >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 letter >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 20 >+ >+=head2 numberpattern >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 distributedto >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 internalnotes >+ >+ data_type: 'longtext' >+ is_nullable: 1 >+ >+=head2 callnumber >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 location >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 1 >+ size: 80 >+ >+=head2 branchcode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=head2 hemisphere >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 lastbranch >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 serialsadditems >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 staffdisplaycount >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 opacdisplaycount >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 graceperiod >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 enddate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "biblionumber", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "subscriptionid", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "librarian", >+ { data_type => "varchar", default_value => "", is_nullable => 1, size => 100 }, >+ "startdate", >+ { data_type => "date", is_nullable => 1 }, >+ "aqbooksellerid", >+ { data_type => "integer", default_value => 0, is_nullable => 1 }, >+ "cost", >+ { data_type => "integer", default_value => 0, is_nullable => 1 }, >+ "aqbudgetid", >+ { data_type => "integer", default_value => 0, is_nullable => 1 }, >+ "weeklength", >+ { data_type => "integer", default_value => 0, is_nullable => 1 }, >+ "monthlength", >+ { data_type => "integer", default_value => 0, is_nullable => 1 }, >+ "numberlength", >+ { data_type => "integer", default_value => 0, is_nullable => 1 }, >+ "periodicity", >+ { data_type => "tinyint", default_value => 0, is_nullable => 1 }, >+ "dow", >+ { data_type => "varchar", default_value => "", is_nullable => 1, size => 100 }, >+ "numberingmethod", >+ { data_type => "varchar", default_value => "", is_nullable => 1, size => 100 }, >+ "notes", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "status", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 }, >+ "add1", >+ { data_type => "integer", default_value => 0, is_nullable => 1 }, >+ "every1", >+ { data_type => "integer", default_value => 0, is_nullable => 1 }, >+ "whenmorethan1", >+ { data_type => "integer", default_value => 0, is_nullable => 1 }, >+ "setto1", >+ { data_type => "integer", is_nullable => 1 }, >+ "lastvalue1", >+ { data_type => "integer", is_nullable => 1 }, >+ "add2", >+ { data_type => "integer", default_value => 0, is_nullable => 1 }, >+ "every2", >+ { data_type => "integer", default_value => 0, is_nullable => 1 }, >+ "whenmorethan2", >+ { data_type => "integer", default_value => 0, is_nullable => 1 }, >+ "setto2", >+ { data_type => "integer", is_nullable => 1 }, >+ "lastvalue2", >+ { data_type => "integer", is_nullable => 1 }, >+ "add3", >+ { data_type => "integer", default_value => 0, is_nullable => 1 }, >+ "every3", >+ { data_type => "integer", default_value => 0, is_nullable => 1 }, >+ "innerloop1", >+ { data_type => "integer", default_value => 0, is_nullable => 1 }, >+ "innerloop2", >+ { data_type => "integer", default_value => 0, is_nullable => 1 }, >+ "innerloop3", >+ { data_type => "integer", default_value => 0, is_nullable => 1 }, >+ "whenmorethan3", >+ { data_type => "integer", default_value => 0, is_nullable => 1 }, >+ "setto3", >+ { data_type => "integer", is_nullable => 1 }, >+ "lastvalue3", >+ { data_type => "integer", is_nullable => 1 }, >+ "issuesatonce", >+ { data_type => "tinyint", default_value => 1, is_nullable => 0 }, >+ "firstacquidate", >+ { data_type => "date", is_nullable => 1 }, >+ "manualhistory", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "irregularity", >+ { data_type => "text", is_nullable => 1 }, >+ "letter", >+ { data_type => "varchar", is_nullable => 1, size => 20 }, >+ "numberpattern", >+ { data_type => "tinyint", default_value => 0, is_nullable => 1 }, >+ "distributedto", >+ { data_type => "text", is_nullable => 1 }, >+ "internalnotes", >+ { data_type => "longtext", is_nullable => 1 }, >+ "callnumber", >+ { data_type => "text", is_nullable => 1 }, >+ "location", >+ { data_type => "varchar", default_value => "", is_nullable => 1, size => 80 }, >+ "branchcode", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+ "hemisphere", >+ { data_type => "tinyint", default_value => 0, is_nullable => 1 }, >+ "lastbranch", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "serialsadditems", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "staffdisplaycount", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "opacdisplaycount", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "graceperiod", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "enddate", >+ { data_type => "date", is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("subscriptionid"); >+ >+=head1 RELATIONS >+ >+=head2 subscriptionroutinglists >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Subscriptionroutinglist> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "subscriptionroutinglists", >+ "Koha::Schema::Result::Subscriptionroutinglist", >+ { "foreign.subscriptionid" => "self.subscriptionid" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:V94nwW1uwvdVX634/QPe6A >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Subscriptionhistory.pm b/Koha/Schema/Result/Subscriptionhistory.pm >new file mode 100644 >index 0000000..471dc52 >--- /dev/null >+++ b/Koha/Schema/Result/Subscriptionhistory.pm >@@ -0,0 +1,96 @@ >+package Koha::Schema::Result::Subscriptionhistory; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Subscriptionhistory >+ >+=cut >+ >+__PACKAGE__->table("subscriptionhistory"); >+ >+=head1 ACCESSORS >+ >+=head2 biblionumber >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 subscriptionid >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 histstartdate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 histenddate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 missinglist >+ >+ data_type: 'longtext' >+ is_nullable: 0 >+ >+=head2 recievedlist >+ >+ data_type: 'longtext' >+ is_nullable: 0 >+ >+=head2 opacnote >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 150 >+ >+=head2 librariannote >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 150 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "biblionumber", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "subscriptionid", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "histstartdate", >+ { data_type => "date", is_nullable => 1 }, >+ "histenddate", >+ { data_type => "date", is_nullable => 1 }, >+ "missinglist", >+ { data_type => "longtext", is_nullable => 0 }, >+ "recievedlist", >+ { data_type => "longtext", is_nullable => 0 }, >+ "opacnote", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 150 }, >+ "librariannote", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 150 }, >+); >+__PACKAGE__->set_primary_key("subscriptionid"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sAkoymtV5cqWuY1fJi/UXg >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Subscriptionroutinglist.pm b/Koha/Schema/Result/Subscriptionroutinglist.pm >new file mode 100644 >index 0000000..64a9ad7 >--- /dev/null >+++ b/Koha/Schema/Result/Subscriptionroutinglist.pm >@@ -0,0 +1,98 @@ >+package Koha::Schema::Result::Subscriptionroutinglist; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Subscriptionroutinglist >+ >+=cut >+ >+__PACKAGE__->table("subscriptionroutinglist"); >+ >+=head1 ACCESSORS >+ >+=head2 routingid >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 ranking >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 subscriptionid >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "routingid", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "borrowernumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "ranking", >+ { data_type => "integer", is_nullable => 1 }, >+ "subscriptionid", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("routingid"); >+__PACKAGE__->add_unique_constraint("subscriptionid", ["subscriptionid", "borrowernumber"]); >+ >+=head1 RELATIONS >+ >+=head2 borrowernumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "borrowernumber", >+ "Koha::Schema::Result::Borrower", >+ { borrowernumber => "borrowernumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 subscriptionid >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Subscription> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "subscriptionid", >+ "Koha::Schema::Result::Subscription", >+ { subscriptionid => "subscriptionid" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qzF+UEtZnlyDm5KBWgAODw >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Suggestion.pm b/Koha/Schema/Result/Suggestion.pm >new file mode 100644 >index 0000000..f95a14c >--- /dev/null >+++ b/Koha/Schema/Result/Suggestion.pm >@@ -0,0 +1,281 @@ >+package Koha::Schema::Result::Suggestion; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Suggestion >+ >+=cut >+ >+__PACKAGE__->table("suggestions"); >+ >+=head1 ACCESSORS >+ >+=head2 suggestionid >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 suggestedby >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 suggesteddate >+ >+ data_type: 'date' >+ default_value: '0000-00-00' >+ is_nullable: 0 >+ >+=head2 managedby >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 manageddate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 acceptedby >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 accepteddate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 rejectedby >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 rejecteddate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 status >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=head2 note >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 author >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 80 >+ >+=head2 title >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 80 >+ >+=head2 copyrightdate >+ >+ data_type: 'smallint' >+ is_nullable: 1 >+ >+=head2 publishercode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 date >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=head2 volumedesc >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 publicationyear >+ >+ data_type: 'smallint' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 place >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 isbn >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 30 >+ >+=head2 mailoverseeing >+ >+ data_type: 'smallint' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 biblionumber >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 reason >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 patronreason >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 budgetid >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 branchcode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 collectiontitle >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 itemtype >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 30 >+ >+=head2 quantity >+ >+ data_type: 'smallint' >+ is_nullable: 1 >+ >+=head2 currency >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 3 >+ >+=head2 price >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [28,6] >+ >+=head2 total >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [28,6] >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "suggestionid", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "suggestedby", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "suggesteddate", >+ { data_type => "date", default_value => "0000-00-00", is_nullable => 0 }, >+ "managedby", >+ { data_type => "integer", is_nullable => 1 }, >+ "manageddate", >+ { data_type => "date", is_nullable => 1 }, >+ "acceptedby", >+ { data_type => "integer", is_nullable => 1 }, >+ "accepteddate", >+ { data_type => "date", is_nullable => 1 }, >+ "rejectedby", >+ { data_type => "integer", is_nullable => 1 }, >+ "rejecteddate", >+ { data_type => "date", is_nullable => 1 }, >+ "status", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+ "note", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "author", >+ { data_type => "varchar", is_nullable => 1, size => 80 }, >+ "title", >+ { data_type => "varchar", is_nullable => 1, size => 80 }, >+ "copyrightdate", >+ { data_type => "smallint", is_nullable => 1 }, >+ "publishercode", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "date", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+ "volumedesc", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "publicationyear", >+ { data_type => "smallint", default_value => 0, is_nullable => 1 }, >+ "place", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "isbn", >+ { data_type => "varchar", is_nullable => 1, size => 30 }, >+ "mailoverseeing", >+ { data_type => "smallint", default_value => 0, is_nullable => 1 }, >+ "biblionumber", >+ { data_type => "integer", is_nullable => 1 }, >+ "reason", >+ { data_type => "text", is_nullable => 1 }, >+ "patronreason", >+ { data_type => "text", is_nullable => 1 }, >+ "budgetid", >+ { data_type => "integer", is_nullable => 1 }, >+ "branchcode", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "collectiontitle", >+ { data_type => "text", is_nullable => 1 }, >+ "itemtype", >+ { data_type => "varchar", is_nullable => 1, size => 30 }, >+ "quantity", >+ { data_type => "smallint", is_nullable => 1 }, >+ "currency", >+ { data_type => "varchar", is_nullable => 1, size => 3 }, >+ "price", >+ { data_type => "decimal", is_nullable => 1, size => [28, 6] }, >+ "total", >+ { data_type => "decimal", is_nullable => 1, size => [28, 6] }, >+); >+__PACKAGE__->set_primary_key("suggestionid"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Yseojs5ogx6ZmYsbhE03Gw >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Systempreference.pm b/Koha/Schema/Result/Systempreference.pm >new file mode 100644 >index 0000000..27f115a >--- /dev/null >+++ b/Koha/Schema/Result/Systempreference.pm >@@ -0,0 +1,72 @@ >+package Koha::Schema::Result::Systempreference; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Systempreference >+ >+=cut >+ >+__PACKAGE__->table("systempreferences"); >+ >+=head1 ACCESSORS >+ >+=head2 variable >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 50 >+ >+=head2 value >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 options >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 explanation >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 type >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 20 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "variable", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 50 }, >+ "value", >+ { data_type => "text", is_nullable => 1 }, >+ "options", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "explanation", >+ { data_type => "text", is_nullable => 1 }, >+ "type", >+ { data_type => "varchar", is_nullable => 1, size => 20 }, >+); >+__PACKAGE__->set_primary_key("variable"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qx8G91nKoJnDCDAMLg0ZUg >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Tag.pm b/Koha/Schema/Result/Tag.pm >new file mode 100644 >index 0000000..37d6aaf >--- /dev/null >+++ b/Koha/Schema/Result/Tag.pm >@@ -0,0 +1,51 @@ >+package Koha::Schema::Result::Tag; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Tag >+ >+=cut >+ >+__PACKAGE__->table("tags"); >+ >+=head1 ACCESSORS >+ >+=head2 entry >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 255 >+ >+=head2 weight >+ >+ data_type: 'bigint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "entry", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, >+ "weight", >+ { data_type => "bigint", default_value => 0, is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("entry"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:c4CkWGECpxog9RqQrxw1Gg >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/TagAll.pm b/Koha/Schema/Result/TagAll.pm >new file mode 100644 >index 0000000..af448fd >--- /dev/null >+++ b/Koha/Schema/Result/TagAll.pm >@@ -0,0 +1,112 @@ >+package Koha::Schema::Result::TagAll; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::TagAll >+ >+=cut >+ >+__PACKAGE__->table("tags_all"); >+ >+=head1 ACCESSORS >+ >+=head2 tag_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 biblionumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 term >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 255 >+ >+=head2 language >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 date_created >+ >+ data_type: 'datetime' >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "tag_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "borrowernumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "biblionumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "term", >+ { data_type => "varchar", is_nullable => 0, size => 255 }, >+ "language", >+ { data_type => "integer", is_nullable => 1 }, >+ "date_created", >+ { data_type => "datetime", is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("tag_id"); >+ >+=head1 RELATIONS >+ >+=head2 biblionumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Biblio> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "biblionumber", >+ "Koha::Schema::Result::Biblio", >+ { biblionumber => "biblionumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 borrowernumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "borrowernumber", >+ "Koha::Schema::Result::Borrower", >+ { borrowernumber => "borrowernumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xdc0YzmHsXuuuUWfa1aRpg >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/TagsApproval.pm b/Koha/Schema/Result/TagsApproval.pm >new file mode 100644 >index 0000000..28d6b2e >--- /dev/null >+++ b/Koha/Schema/Result/TagsApproval.pm >@@ -0,0 +1,105 @@ >+package Koha::Schema::Result::TagsApproval; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::TagsApproval >+ >+=cut >+ >+__PACKAGE__->table("tags_approval"); >+ >+=head1 ACCESSORS >+ >+=head2 term >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 255 >+ >+=head2 approved >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 date_approved >+ >+ data_type: 'datetime' >+ is_nullable: 1 >+ >+=head2 approved_by >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+=head2 weight_total >+ >+ data_type: 'integer' >+ default_value: 1 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "term", >+ { data_type => "varchar", is_nullable => 0, size => 255 }, >+ "approved", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "date_approved", >+ { data_type => "datetime", is_nullable => 1 }, >+ "approved_by", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, >+ "weight_total", >+ { data_type => "integer", default_value => 1, is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("term"); >+ >+=head1 RELATIONS >+ >+=head2 approved_by >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "approved_by", >+ "Koha::Schema::Result::Borrower", >+ { borrowernumber => "approved_by" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 tags_indexes >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::TagsIndex> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "tags_indexes", >+ "Koha::Schema::Result::TagsIndex", >+ { "foreign.term" => "self.term" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0C4z7rRUg2mcdmdrUOGcYw >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/TagsIndex.pm b/Koha/Schema/Result/TagsIndex.pm >new file mode 100644 >index 0000000..f289b4c >--- /dev/null >+++ b/Koha/Schema/Result/TagsIndex.pm >@@ -0,0 +1,91 @@ >+package Koha::Schema::Result::TagsIndex; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::TagsIndex >+ >+=cut >+ >+__PACKAGE__->table("tags_index"); >+ >+=head1 ACCESSORS >+ >+=head2 term >+ >+ data_type: 'varchar' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 255 >+ >+=head2 biblionumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 weight >+ >+ data_type: 'integer' >+ default_value: 1 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "term", >+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 255 }, >+ "biblionumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "weight", >+ { data_type => "integer", default_value => 1, is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("term", "biblionumber"); >+ >+=head1 RELATIONS >+ >+=head2 biblionumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Biblio> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "biblionumber", >+ "Koha::Schema::Result::Biblio", >+ { biblionumber => "biblionumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 term >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::TagsApproval> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "term", >+ "Koha::Schema::Result::TagsApproval", >+ { term => "term" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BTw4FJK85g85U1U0RELiQQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/TmpHoldsqueue.pm b/Koha/Schema/Result/TmpHoldsqueue.pm >new file mode 100644 >index 0000000..8373ed4 >--- /dev/null >+++ b/Koha/Schema/Result/TmpHoldsqueue.pm >@@ -0,0 +1,144 @@ >+package Koha::Schema::Result::TmpHoldsqueue; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::TmpHoldsqueue >+ >+=cut >+ >+__PACKAGE__->table("tmp_holdsqueue"); >+ >+=head1 ACCESSORS >+ >+=head2 biblionumber >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 itemnumber >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 barcode >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 20 >+ >+=head2 surname >+ >+ data_type: 'mediumtext' >+ is_nullable: 0 >+ >+=head2 firstname >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 phone >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ is_nullable: 0 >+ >+=head2 cardnumber >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 16 >+ >+=head2 reservedate >+ >+ data_type: 'date' >+ is_nullable: 1 >+ >+=head2 title >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 itemcallnumber >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 holdingbranch >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 pickbranch >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 notes >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 item_level_request >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "biblionumber", >+ { data_type => "integer", is_nullable => 1 }, >+ "itemnumber", >+ { data_type => "integer", is_nullable => 1 }, >+ "barcode", >+ { data_type => "varchar", is_nullable => 1, size => 20 }, >+ "surname", >+ { data_type => "mediumtext", is_nullable => 0 }, >+ "firstname", >+ { data_type => "text", is_nullable => 1 }, >+ "phone", >+ { data_type => "text", is_nullable => 1 }, >+ "borrowernumber", >+ { data_type => "integer", is_nullable => 0 }, >+ "cardnumber", >+ { data_type => "varchar", is_nullable => 1, size => 16 }, >+ "reservedate", >+ { data_type => "date", is_nullable => 1 }, >+ "title", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "itemcallnumber", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "holdingbranch", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "pickbranch", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "notes", >+ { data_type => "text", is_nullable => 1 }, >+ "item_level_request", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uzRfXFE7Kjkoh5H5e1akEw >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/TransportCost.pm b/Koha/Schema/Result/TransportCost.pm >new file mode 100644 >index 0000000..135988e >--- /dev/null >+++ b/Koha/Schema/Result/TransportCost.pm >@@ -0,0 +1,100 @@ >+package Koha::Schema::Result::TransportCost; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::TransportCost >+ >+=cut >+ >+__PACKAGE__->table("transport_cost"); >+ >+=head1 ACCESSORS >+ >+=head2 frombranch >+ >+ data_type: 'varchar' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 10 >+ >+=head2 tobranch >+ >+ data_type: 'varchar' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ size: 10 >+ >+=head2 cost >+ >+ data_type: 'decimal' >+ is_nullable: 0 >+ size: [6,2] >+ >+=head2 disable_transfer >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "frombranch", >+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, >+ "tobranch", >+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, >+ "cost", >+ { data_type => "decimal", is_nullable => 0, size => [6, 2] }, >+ "disable_transfer", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("frombranch", "tobranch"); >+ >+=head1 RELATIONS >+ >+=head2 frombranch >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Branch> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "frombranch", >+ "Koha::Schema::Result::Branch", >+ { branchcode => "frombranch" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 tobranch >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Branch> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "tobranch", >+ "Koha::Schema::Result::Branch", >+ { branchcode => "tobranch" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xaYbVRwPFyhljmGybBzTqA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/UserPermission.pm b/Koha/Schema/Result/UserPermission.pm >new file mode 100644 >index 0000000..bec2856 >--- /dev/null >+++ b/Koha/Schema/Result/UserPermission.pm >@@ -0,0 +1,102 @@ >+package Koha::Schema::Result::UserPermission; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::UserPermission >+ >+=cut >+ >+__PACKAGE__->table("user_permissions"); >+ >+=head1 ACCESSORS >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 module_bit >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 code >+ >+ data_type: 'varchar' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ size: 64 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "borrowernumber", >+ { >+ data_type => "integer", >+ default_value => 0, >+ is_foreign_key => 1, >+ is_nullable => 0, >+ }, >+ "module_bit", >+ { >+ data_type => "integer", >+ default_value => 0, >+ is_foreign_key => 1, >+ is_nullable => 0, >+ }, >+ "code", >+ { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 64 }, >+); >+ >+=head1 RELATIONS >+ >+=head2 borrowernumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "borrowernumber", >+ "Koha::Schema::Result::Borrower", >+ { borrowernumber => "borrowernumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 permission >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Permission> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "permission", >+ "Koha::Schema::Result::Permission", >+ { code => "code", module_bit => "module_bit" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uj0+AqPSrddrRPjAEbeDUA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Userflag.pm b/Koha/Schema/Result/Userflag.pm >new file mode 100644 >index 0000000..f8ef9e8 >--- /dev/null >+++ b/Koha/Schema/Result/Userflag.pm >@@ -0,0 +1,82 @@ >+package Koha::Schema::Result::Userflag; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Userflag >+ >+=cut >+ >+__PACKAGE__->table("userflags"); >+ >+=head1 ACCESSORS >+ >+=head2 bit >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 flag >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 30 >+ >+=head2 flagdesc >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 defaulton >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "bit", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "flag", >+ { data_type => "varchar", is_nullable => 1, size => 30 }, >+ "flagdesc", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "defaulton", >+ { data_type => "integer", is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("bit"); >+ >+=head1 RELATIONS >+ >+=head2 permissions >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Permission> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "permissions", >+ "Koha::Schema::Result::Permission", >+ { "foreign.module_bit" => "self.bit" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7eKK9jZ+GryvazfRyKOIBw >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Virtualshelfcontent.pm b/Koha/Schema/Result/Virtualshelfcontent.pm >new file mode 100644 >index 0000000..e1f2e9c >--- /dev/null >+++ b/Koha/Schema/Result/Virtualshelfcontent.pm >@@ -0,0 +1,135 @@ >+package Koha::Schema::Result::Virtualshelfcontent; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Virtualshelfcontent >+ >+=cut >+ >+__PACKAGE__->table("virtualshelfcontents"); >+ >+=head1 ACCESSORS >+ >+=head2 shelfnumber >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 biblionumber >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 flags >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 dateadded >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "shelfnumber", >+ { >+ data_type => "integer", >+ default_value => 0, >+ is_foreign_key => 1, >+ is_nullable => 0, >+ }, >+ "biblionumber", >+ { >+ data_type => "integer", >+ default_value => 0, >+ is_foreign_key => 1, >+ is_nullable => 0, >+ }, >+ "flags", >+ { data_type => "integer", is_nullable => 1 }, >+ "dateadded", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+ "borrowernumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, >+); >+ >+=head1 RELATIONS >+ >+=head2 biblionumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Biblio> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "biblionumber", >+ "Koha::Schema::Result::Biblio", >+ { biblionumber => "biblionumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 borrowernumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "borrowernumber", >+ "Koha::Schema::Result::Borrower", >+ { borrowernumber => "borrowernumber" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 shelfnumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Virtualshelve> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "shelfnumber", >+ "Koha::Schema::Result::Virtualshelve", >+ { shelfnumber => "shelfnumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LytHu3VzJUfDRLgSsRHy1Q >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Virtualshelfshare.pm b/Koha/Schema/Result/Virtualshelfshare.pm >new file mode 100644 >index 0000000..7e0a985 >--- /dev/null >+++ b/Koha/Schema/Result/Virtualshelfshare.pm >@@ -0,0 +1,105 @@ >+package Koha::Schema::Result::Virtualshelfshare; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Virtualshelfshare >+ >+=cut >+ >+__PACKAGE__->table("virtualshelfshares"); >+ >+=head1 ACCESSORS >+ >+=head2 id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 shelfnumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+=head2 borrowernumber >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+=head2 invitekey >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 10 >+ >+=head2 sharedate >+ >+ data_type: 'datetime' >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "shelfnumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "borrowernumber", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, >+ "invitekey", >+ { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "sharedate", >+ { data_type => "datetime", is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("id"); >+ >+=head1 RELATIONS >+ >+=head2 shelfnumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Virtualshelve> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "shelfnumber", >+ "Koha::Schema::Result::Virtualshelve", >+ { shelfnumber => "shelfnumber" }, >+ { on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+=head2 borrowernumber >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "borrowernumber", >+ "Koha::Schema::Result::Borrower", >+ { borrowernumber => "borrowernumber" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wbmtFrbzS+jaFaiZRZ0uwg >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Virtualshelve.pm b/Koha/Schema/Result/Virtualshelve.pm >new file mode 100644 >index 0000000..c28cc36 >--- /dev/null >+++ b/Koha/Schema/Result/Virtualshelve.pm >@@ -0,0 +1,157 @@ >+package Koha::Schema::Result::Virtualshelve; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Virtualshelve >+ >+=cut >+ >+__PACKAGE__->table("virtualshelves"); >+ >+=head1 ACCESSORS >+ >+=head2 shelfnumber >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 shelfname >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 owner >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+=head2 category >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 1 >+ >+=head2 sortfield >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 16 >+ >+=head2 lastmodified >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=head2 allow_add >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 1 >+ >+=head2 allow_delete_own >+ >+ data_type: 'tinyint' >+ default_value: 1 >+ is_nullable: 1 >+ >+=head2 allow_delete_other >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "shelfnumber", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "shelfname", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "owner", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, >+ "category", >+ { data_type => "varchar", is_nullable => 1, size => 1 }, >+ "sortfield", >+ { data_type => "varchar", is_nullable => 1, size => 16 }, >+ "lastmodified", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+ "allow_add", >+ { data_type => "tinyint", default_value => 0, is_nullable => 1 }, >+ "allow_delete_own", >+ { data_type => "tinyint", default_value => 1, is_nullable => 1 }, >+ "allow_delete_other", >+ { data_type => "tinyint", default_value => 0, is_nullable => 1 }, >+); >+__PACKAGE__->set_primary_key("shelfnumber"); >+ >+=head1 RELATIONS >+ >+=head2 virtualshelfcontents >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Virtualshelfcontent> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "virtualshelfcontents", >+ "Koha::Schema::Result::Virtualshelfcontent", >+ { "foreign.shelfnumber" => "self.shelfnumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 virtualshelfshares >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Virtualshelfshare> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "virtualshelfshares", >+ "Koha::Schema::Result::Virtualshelfshare", >+ { "foreign.shelfnumber" => "self.shelfnumber" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 owner >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "owner", >+ "Koha::Schema::Result::Borrower", >+ { borrowernumber => "owner" }, >+ { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GitYLGGw2F/bqc511p2oTg >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Z3950server.pm b/Koha/Schema/Result/Z3950server.pm >new file mode 100644 >index 0000000..48e6747 >--- /dev/null >+++ b/Koha/Schema/Result/Z3950server.pm >@@ -0,0 +1,167 @@ >+package Koha::Schema::Result::Z3950server; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Z3950server >+ >+=cut >+ >+__PACKAGE__->table("z3950servers"); >+ >+=head1 ACCESSORS >+ >+=head2 host >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 port >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 db >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 userid >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 password >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 255 >+ >+=head2 name >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 checked >+ >+ data_type: 'smallint' >+ is_nullable: 1 >+ >+=head2 rank >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 syntax >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 80 >+ >+=head2 timeout >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 icon >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 position >+ >+ data_type: 'enum' >+ default_value: 'primary' >+ extra: {list => ["primary","secondary",""]} >+ is_nullable: 0 >+ >+=head2 type >+ >+ data_type: 'enum' >+ default_value: 'zed' >+ extra: {list => ["zed","opensearch"]} >+ is_nullable: 0 >+ >+=head2 encoding >+ >+ data_type: 'text' >+ is_nullable: 1 >+ >+=head2 description >+ >+ data_type: 'text' >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "host", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "port", >+ { data_type => "integer", is_nullable => 1 }, >+ "db", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "userid", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "password", >+ { data_type => "varchar", is_nullable => 1, size => 255 }, >+ "name", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "checked", >+ { data_type => "smallint", is_nullable => 1 }, >+ "rank", >+ { data_type => "integer", is_nullable => 1 }, >+ "syntax", >+ { data_type => "varchar", is_nullable => 1, size => 80 }, >+ "timeout", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "icon", >+ { data_type => "text", is_nullable => 1 }, >+ "position", >+ { >+ data_type => "enum", >+ default_value => "primary", >+ extra => { list => ["primary", "secondary", ""] }, >+ is_nullable => 0, >+ }, >+ "type", >+ { >+ data_type => "enum", >+ default_value => "zed", >+ extra => { list => ["zed", "opensearch"] }, >+ is_nullable => 0, >+ }, >+ "encoding", >+ { data_type => "text", is_nullable => 1 }, >+ "description", >+ { data_type => "text", is_nullable => 0 }, >+); >+__PACKAGE__->set_primary_key("id"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3D8BWcZZVQlK8zrPw4GTtQ >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/Koha/Schema/Result/Zebraqueue.pm b/Koha/Schema/Result/Zebraqueue.pm >new file mode 100644 >index 0000000..6620144 >--- /dev/null >+++ b/Koha/Schema/Result/Zebraqueue.pm >@@ -0,0 +1,94 @@ >+package Koha::Schema::Result::Zebraqueue; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+ >+=head1 NAME >+ >+Koha::Schema::Result::Zebraqueue >+ >+=cut >+ >+__PACKAGE__->table("zebraqueue"); >+ >+=head1 ACCESSORS >+ >+=head2 id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 biblio_auth_number >+ >+ data_type: 'bigint' >+ default_value: 0 >+ extra: {unsigned => 1} >+ is_nullable: 0 >+ >+=head2 operation >+ >+ data_type: 'char' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 20 >+ >+=head2 server >+ >+ data_type: 'char' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 20 >+ >+=head2 done >+ >+ data_type: 'integer' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 time >+ >+ data_type: 'timestamp' >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "biblio_auth_number", >+ { >+ data_type => "bigint", >+ default_value => 0, >+ extra => { unsigned => 1 }, >+ is_nullable => 0, >+ }, >+ "operation", >+ { data_type => "char", default_value => "", is_nullable => 0, size => 20 }, >+ "server", >+ { data_type => "char", default_value => "", is_nullable => 0, size => 20 }, >+ "done", >+ { data_type => "integer", default_value => 0, is_nullable => 0 }, >+ "time", >+ { >+ data_type => "timestamp", >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, >+); >+__PACKAGE__->set_primary_key("id"); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WrwJr7Op+i6ck0EwiBADCA >+ >+ >+# You can replace this text with custom content, and it will be preserved on regeneration >+1; >diff --git a/debian/control b/debian/control >index 334b63a..794d691 100644 >--- a/debian/control >+++ b/debian/control >@@ -29,6 +29,7 @@ Build-Depends: libcgi-session-driver-memcached-perl, > libdbd-mysql-perl, > libdbd-sqlite2-perl, > libdbi-perl, >+ libdbix-class-schema-loader-perl, > libdigest-sha-perl | perl, > libemail-date-perl, > libgd-barcode-perl, >diff --git a/install_misc/debian.packages b/install_misc/debian.packages >index 153bcb7..f760266 100644 >--- a/install_misc/debian.packages >+++ b/install_misc/debian.packages >@@ -30,6 +30,7 @@ libdatetime-timezone-perl install > libdbd-mysql-perl install > libdbd-sqlite2-perl install > libdbi-perl install >+libdbix-class-schema-loader-perl install > libemail-date-perl install > libgcrypt11-dev install > libgcrypt11 install >diff --git a/misc/devel/updateDatabase.pl b/misc/devel/updateDatabase.pl >new file mode 100755 >index 0000000..83ac357 >--- /dev/null >+++ b/misc/devel/updateDatabase.pl >@@ -0,0 +1,28 @@ >+#!/usr/bin/perl >+ >+use strict; >+use warnings; >+use C4::Context; >+use DBIx::Class::Schema::Loader qw/ make_schema_at /; >+use Getopt::Long; >+ >+my $path = "./"; >+GetOptions( >+ "path=s" => \$path, >+ ); >+my $context = new C4::Context; >+my $db_driver; >+if ($context->config("db_scheme")){ >+ $db_driver=C4::Context->db_scheme2dbi($context->config("db_scheme")); >+}else{ >+ $db_driver="mysql"; >+} >+ >+ >+my $db_name = $context->config("database"); >+my $db_host = $context->config("hostname"); >+my $db_port = $context->config("port") || ''; >+my $db_user = $context->config("user"); >+my $db_passwd = $context->config("pass"); >+ >+make_schema_at("Koha::Schema", {debug => 1, dump_directory => $path}, ["DBI:$db_driver:dbname=$db_name;host=$db_host;port=$db_port",$db_user, $db_passwd ]); >diff --git a/t/Context.t b/t/Context.t >new file mode 100755 >index 0000000..12d1675 >--- /dev/null >+++ b/t/Context.t >@@ -0,0 +1,10 @@ >+#!/usr/bin/perl >+use strict; >+use warnings; >+use DBI; >+use Test::More tests => 1; >+use Test::MockModule; >+ >+BEGIN { >+ use_ok('C4::Context'); >+} >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8798
:
12403
|
12405
|
12429
|
12439
|
12442
|
12443
|
12453
|
12477
|
12478
|
12480
|
12481
|
12506
|
12520
|
12521
|
12538
|
17581
|
17582
|
17583
|
17584
|
17585
|
17586
|
19134
|
19137
|
19138
|
19139
|
19140
|
19141
|
19248
|
19249
|
19250
|
19251