1DBIx::Class::DeploymentUDHsBaeInrxd:lC:eoCrnl:ta:rsHisab:nu:dtDleeedpslVPoeeyrrmsleinoDtnoHScatunomdrelanegtrea:(t:3iH)oanndlesVersionStorage(3)
2
3
4

NAME

6       DBIx::Class::DeploymentHandler::HandlesVersionStorage - Interface for
7       version storage methods
8

DESCRIPTION

10       Typically VersionStorages will be implemented with a simple
11       DBIx::Class::Result.  Take a look at the two existing implementations
12       for examples of what you might want to do in your own storage.
13

KNOWN IMPLEMENTATIONS

15       ·   DBIx::Class::DeploymentHandler::VersionStorage::Standard
16
17       ·   DBIx::Class::DeploymentHandler::VersionStorage::Deprecated
18

METHODS

20   add_database_version
21        $dh->add_database_version({
22          version     => '1.02',
23          ddl         => $ddl, # can be undef
24          upgrade_sql => $sql, # can be undef
25        });
26
27       Store a new version into the version storage
28
29   database_version
30        my $db_version = $version_storage->database_version
31
32       Returns the most recently installed version in the database.
33
34   delete_database_version
35        $dh->delete_database_version({ version => '1.02' })
36
37       Deletes given database version from the version storage
38
39   version_storage_is_installed
40        warn q(I can't version this database!)
41          unless $dh->version_storage_is_installed
42
43       return true if the version storage is installed.
44

AUTHOR

46       Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com>
47
49       This software is copyright (c) 2019 by Arthur Axel "fREW" Schmidt.
50
51       This is free software; you can redistribute it and/or modify it under
52       the same terms as the Perl 5 programming language system itself.
53
54
55
56perl v5.30.1          DBIx::Class:2:0D2e0p-l0o1y-m2e9ntHandler::HandlesVersionStorage(3)
Impressum