]> git.koha-community.org Git - koha.git/commit
Bug 8798: DBIx::Class base classes for all Koha tables
authorElliott Davis <elliott@bywatersolutions.com>
Sun, 2 Sep 2012 13:45:40 +0000 (08:45 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 14 Oct 2013 21:07:24 +0000 (21:07 +0000)
commit8a480ad75d3c78d8cf02959fb8430f4b54f82c1f
treea2896af8782afc1b523ac3efab14fc2d0fcd02a9
parentffd625b88f87663c84a55b7b96e56a32b606e36d
Bug 8798: DBIx::Class base classes for all Koha tables

* Added base class files for all tables in koha using
DBIx::Class::Schema::Loader.
* Added a (very basic) test file for C4::Context
* Also added dependencies in required files.

To Test:

[1] Install patch
[2] Make sure you can still connect to Koha
[3] You may optionally run this test script:

        use Koha::Database;
        use Data::Dumper;
        my $db = Koha::Database->new();
        my $schema = $db->schema();
        print Dumper($schema->resultset("Borrower"));

    If you run this file you should get a DBIx dump of the borrowers table.

Signed-off-by: wajasu <matted-34813@mypacks.net>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
155 files changed:
C4/Context.pm
C4/Installer/PerlDependencies.pm
Koha/Schema.pm [new file with mode: 0644]
Koha/Schema/Result/Accountline.pm [new file with mode: 0644]
Koha/Schema/Result/Accountoffset.pm [new file with mode: 0644]
Koha/Schema/Result/ActionLogs.pm [new file with mode: 0644]
Koha/Schema/Result/Alert.pm [new file with mode: 0644]
Koha/Schema/Result/Aqbasket.pm [new file with mode: 0644]
Koha/Schema/Result/Aqbasketgroup.pm [new file with mode: 0644]
Koha/Schema/Result/Aqbookseller.pm [new file with mode: 0644]
Koha/Schema/Result/Aqbudget.pm [new file with mode: 0644]
Koha/Schema/Result/Aqbudgetborrower.pm [new file with mode: 0644]
Koha/Schema/Result/Aqbudgetperiod.pm [new file with mode: 0644]
Koha/Schema/Result/AqbudgetsPlanning.pm [new file with mode: 0644]
Koha/Schema/Result/Aqcontract.pm [new file with mode: 0644]
Koha/Schema/Result/Aqinvoice.pm [new file with mode: 0644]
Koha/Schema/Result/Aqorder.pm [new file with mode: 0644]
Koha/Schema/Result/Aqorderdelivery.pm [new file with mode: 0644]
Koha/Schema/Result/AqordersItem.pm [new file with mode: 0644]
Koha/Schema/Result/AuthHeader.pm [new file with mode: 0644]
Koha/Schema/Result/AuthSubfieldStructure.pm [new file with mode: 0644]
Koha/Schema/Result/AuthTagStructure.pm [new file with mode: 0644]
Koha/Schema/Result/AuthType.pm [new file with mode: 0644]
Koha/Schema/Result/AuthorisedValue.pm [new file with mode: 0644]
Koha/Schema/Result/Biblio.pm [new file with mode: 0644]
Koha/Schema/Result/BiblioFramework.pm [new file with mode: 0644]
Koha/Schema/Result/Biblioimage.pm [new file with mode: 0644]
Koha/Schema/Result/Biblioitem.pm [new file with mode: 0644]
Koha/Schema/Result/Borrower.pm [new file with mode: 0644]
Koha/Schema/Result/BorrowerAttribute.pm [new file with mode: 0644]
Koha/Schema/Result/BorrowerAttributeType.pm [new file with mode: 0644]
Koha/Schema/Result/BorrowerFile.pm [new file with mode: 0644]
Koha/Schema/Result/BorrowerMessagePreference.pm [new file with mode: 0644]
Koha/Schema/Result/BorrowerMessageTransportPreference.pm [new file with mode: 0644]
Koha/Schema/Result/Branch.pm [new file with mode: 0644]
Koha/Schema/Result/BranchBorrowerCircRule.pm [new file with mode: 0644]
Koha/Schema/Result/BranchItemRule.pm [new file with mode: 0644]
Koha/Schema/Result/BranchTransferLimit.pm [new file with mode: 0644]
Koha/Schema/Result/Branchcategory.pm [new file with mode: 0644]
Koha/Schema/Result/Branchrelation.pm [new file with mode: 0644]
Koha/Schema/Result/Branchtransfer.pm [new file with mode: 0644]
Koha/Schema/Result/Browser.pm [new file with mode: 0644]
Koha/Schema/Result/Category.pm [new file with mode: 0644]
Koha/Schema/Result/City.pm [new file with mode: 0644]
Koha/Schema/Result/ClassSortRule.pm [new file with mode: 0644]
Koha/Schema/Result/ClassSource.pm [new file with mode: 0644]
Koha/Schema/Result/Closure.pm [new file with mode: 0644]
Koha/Schema/Result/ClosureRrule.pm [new file with mode: 0644]
Koha/Schema/Result/Collection.pm [new file with mode: 0644]
Koha/Schema/Result/CollectionTracking.pm [new file with mode: 0644]
Koha/Schema/Result/CreatorBatch.pm [new file with mode: 0644]
Koha/Schema/Result/CreatorImage.pm [new file with mode: 0644]
Koha/Schema/Result/CreatorLayout.pm [new file with mode: 0644]
Koha/Schema/Result/CreatorTemplate.pm [new file with mode: 0644]
Koha/Schema/Result/Currency.pm [new file with mode: 0644]
Koha/Schema/Result/DefaultBorrowerCircRule.pm [new file with mode: 0644]
Koha/Schema/Result/DefaultBranchCircRule.pm [new file with mode: 0644]
Koha/Schema/Result/DefaultBranchItemRule.pm [new file with mode: 0644]
Koha/Schema/Result/DefaultCircRule.pm [new file with mode: 0644]
Koha/Schema/Result/Deletedbiblio.pm [new file with mode: 0644]
Koha/Schema/Result/Deletedbiblioitem.pm [new file with mode: 0644]
Koha/Schema/Result/Deletedborrower.pm [new file with mode: 0644]
Koha/Schema/Result/Deleteditem.pm [new file with mode: 0644]
Koha/Schema/Result/Ethnicity.pm [new file with mode: 0644]
Koha/Schema/Result/ExportFormat.pm [new file with mode: 0644]
Koha/Schema/Result/Fieldmapping.pm [new file with mode: 0644]
Koha/Schema/Result/HoldFillTarget.pm [new file with mode: 0644]
Koha/Schema/Result/ImportAuth.pm [new file with mode: 0644]
Koha/Schema/Result/ImportBatch.pm [new file with mode: 0644]
Koha/Schema/Result/ImportBiblio.pm [new file with mode: 0644]
Koha/Schema/Result/ImportItem.pm [new file with mode: 0644]
Koha/Schema/Result/ImportRecord.pm [new file with mode: 0644]
Koha/Schema/Result/ImportRecordMatches.pm [new file with mode: 0644]
Koha/Schema/Result/Issue.pm [new file with mode: 0644]
Koha/Schema/Result/Issuingrule.pm [new file with mode: 0644]
Koha/Schema/Result/Item.pm [new file with mode: 0644]
Koha/Schema/Result/ItemCirculationAlertPreference.pm [new file with mode: 0644]
Koha/Schema/Result/Itemtype.pm [new file with mode: 0644]
Koha/Schema/Result/LanguageDescription.pm [new file with mode: 0644]
Koha/Schema/Result/LanguageRfc4646ToIso639.pm [new file with mode: 0644]
Koha/Schema/Result/LanguageScriptBidi.pm [new file with mode: 0644]
Koha/Schema/Result/LanguageScriptMapping.pm [new file with mode: 0644]
Koha/Schema/Result/LanguageSubtagRegistry.pm [new file with mode: 0644]
Koha/Schema/Result/Letter.pm [new file with mode: 0644]
Koha/Schema/Result/MarcMatcher.pm [new file with mode: 0644]
Koha/Schema/Result/MarcSubfieldStructure.pm [new file with mode: 0644]
Koha/Schema/Result/MarcTagStructure.pm [new file with mode: 0644]
Koha/Schema/Result/Matchcheck.pm [new file with mode: 0644]
Koha/Schema/Result/MatcherMatchpoint.pm [new file with mode: 0644]
Koha/Schema/Result/Matchpoint.pm [new file with mode: 0644]
Koha/Schema/Result/MatchpointComponent.pm [new file with mode: 0644]
Koha/Schema/Result/MatchpointComponentNorm.pm [new file with mode: 0644]
Koha/Schema/Result/Message.pm [new file with mode: 0644]
Koha/Schema/Result/MessageAttribute.pm [new file with mode: 0644]
Koha/Schema/Result/MessageQueue.pm [new file with mode: 0644]
Koha/Schema/Result/MessageTransport.pm [new file with mode: 0644]
Koha/Schema/Result/MessageTransportType.pm [new file with mode: 0644]
Koha/Schema/Result/NeedMergeAuthority.pm [new file with mode: 0644]
Koha/Schema/Result/Notify.pm [new file with mode: 0644]
Koha/Schema/Result/Nozebra.pm [new file with mode: 0644]
Koha/Schema/Result/OaiSet.pm [new file with mode: 0644]
Koha/Schema/Result/OaiSetsBiblio.pm [new file with mode: 0644]
Koha/Schema/Result/OaiSetsDescription.pm [new file with mode: 0644]
Koha/Schema/Result/OaiSetsMapping.pm [new file with mode: 0644]
Koha/Schema/Result/OldIssue.pm [new file with mode: 0644]
Koha/Schema/Result/OldReserve.pm [new file with mode: 0644]
Koha/Schema/Result/OpacNews.pm [new file with mode: 0644]
Koha/Schema/Result/Overduerule.pm [new file with mode: 0644]
Koha/Schema/Result/Patroncard.pm [new file with mode: 0644]
Koha/Schema/Result/Patronimage.pm [new file with mode: 0644]
Koha/Schema/Result/PendingOfflineOperation.pm [new file with mode: 0644]
Koha/Schema/Result/Permission.pm [new file with mode: 0644]
Koha/Schema/Result/Printer.pm [new file with mode: 0644]
Koha/Schema/Result/PrintersProfile.pm [new file with mode: 0644]
Koha/Schema/Result/Quote.pm [new file with mode: 0644]
Koha/Schema/Result/Rating.pm [new file with mode: 0644]
Koha/Schema/Result/RepeatableHoliday.pm [new file with mode: 0644]
Koha/Schema/Result/ReportsDictionary.pm [new file with mode: 0644]
Koha/Schema/Result/Reserve.pm [new file with mode: 0644]
Koha/Schema/Result/Reserveconstraint.pm [new file with mode: 0644]
Koha/Schema/Result/Review.pm [new file with mode: 0644]
Koha/Schema/Result/Roadtype.pm [new file with mode: 0644]
Koha/Schema/Result/SavedReport.pm [new file with mode: 0644]
Koha/Schema/Result/SavedSql.pm [new file with mode: 0644]
Koha/Schema/Result/SearchHistory.pm [new file with mode: 0644]
Koha/Schema/Result/Serial.pm [new file with mode: 0644]
Koha/Schema/Result/Serialitem.pm [new file with mode: 0644]
Koha/Schema/Result/ServicesThrottle.pm [new file with mode: 0644]
Koha/Schema/Result/Session.pm [new file with mode: 0644]
Koha/Schema/Result/SocialData.pm [new file with mode: 0644]
Koha/Schema/Result/SpecialHoliday.pm [new file with mode: 0644]
Koha/Schema/Result/Statistic.pm [new file with mode: 0644]
Koha/Schema/Result/Stopword.pm [new file with mode: 0644]
Koha/Schema/Result/Subscription.pm [new file with mode: 0644]
Koha/Schema/Result/Subscriptionhistory.pm [new file with mode: 0644]
Koha/Schema/Result/Subscriptionroutinglist.pm [new file with mode: 0644]
Koha/Schema/Result/Suggestion.pm [new file with mode: 0644]
Koha/Schema/Result/Systempreference.pm [new file with mode: 0644]
Koha/Schema/Result/Tag.pm [new file with mode: 0644]
Koha/Schema/Result/TagAll.pm [new file with mode: 0644]
Koha/Schema/Result/TagsApproval.pm [new file with mode: 0644]
Koha/Schema/Result/TagsIndex.pm [new file with mode: 0644]
Koha/Schema/Result/TmpHoldsqueue.pm [new file with mode: 0644]
Koha/Schema/Result/TransportCost.pm [new file with mode: 0644]
Koha/Schema/Result/UserPermission.pm [new file with mode: 0644]
Koha/Schema/Result/Userflag.pm [new file with mode: 0644]
Koha/Schema/Result/Virtualshelfcontent.pm [new file with mode: 0644]
Koha/Schema/Result/Virtualshelfshare.pm [new file with mode: 0644]
Koha/Schema/Result/Virtualshelve.pm [new file with mode: 0644]
Koha/Schema/Result/Z3950server.pm [new file with mode: 0644]
Koha/Schema/Result/Zebraqueue.pm [new file with mode: 0644]
debian/control
install_misc/debian.packages
misc/devel/updateDatabase.pl [new file with mode: 0755]
t/Context.t [new file with mode: 0755]