projects
/
dbsrgits/DBIx-Class-DeploymentHandler.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
working downgrades!
[dbsrgits/DBIx-Class-DeploymentHandler.git]
/
lib
/
DBIx
/
Class
/
DeploymentHandler
/
VersionStorage
/
Standard.pm
diff --git
a/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard.pm
b/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard.pm
index
78265aa
..
8acb6a8
100644
(file)
--- a/
lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard.pm
+++ b/
lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard.pm
@@
-27,6
+27,10
@@
sub _build_version_rs {
sub add_database_version { $_[0]->version_rs->create($_[1]) }
+sub delete_database_version {
+ $_[0]->version_rs->search({ version => $_[1]->{version}})->delete
+}
+
__PACKAGE__->meta->make_immutable;
1;