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
/
Deprecated.pm
diff --git
a/lib/DBIx/Class/DeploymentHandler/VersionStorage/Deprecated.pm
b/lib/DBIx/Class/DeploymentHandler/VersionStorage/Deprecated.pm
index
72ffb3c
..
282bf49
100644
(file)
--- a/
lib/DBIx/Class/DeploymentHandler/VersionStorage/Deprecated.pm
+++ b/
lib/DBIx/Class/DeploymentHandler/VersionStorage/Deprecated.pm
@@
-31,6
+31,10
@@
sub add_database_version {
$_[0]->version_rs->create({ version => $_[1]->{version} })
}
+sub delete_database_version {
+ $_[0]->version_rs->search({ version => $_[1]->{version}})->delete
+}
+
__PACKAGE__->meta->make_immutable;
1;