X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema.pm;h=2e6e6c068cf9081ed9886616adb057efaba97949;hb=39e45539f3373a1f84da5cbefc5b9919484ee384;hp=3b25530f4adcd86e839324fdcd9f25fa251ce756;hpb=ec30888d452dd0529316caa75fa21d2e9da95451;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Schema.pm b/lib/DBIx/Class/Schema.pm index 3b25530..2e6e6c0 100644 --- a/lib/DBIx/Class/Schema.pm +++ b/lib/DBIx/Class/Schema.pm @@ -521,6 +521,18 @@ sub throw_exception { croak @_; } +=head2 deploy + +Attempts to deploy the schema to the current storage + +=cut + +sub deploy { + my ($self) = shift; + $self->throw_exception("Can't deploy without storage") unless $self->storage; + $self->storage->deploy($self); +} + 1; =head1 AUTHORS