line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DBIx::Schema::Changelog::Action::Sql; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 NAME |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
DBIx::Schema::Changelog::Action::Sql - Action for manually called sql |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 VERSION |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
Version 0.7.2 |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=cut |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
our $VERSION = '0.7.2'; |
14
|
|
|
|
|
|
|
|
15
|
6
|
|
|
6
|
|
615
|
use strict; |
|
6
|
|
|
|
|
7
|
|
|
6
|
|
|
|
|
226
|
|
16
|
6
|
|
|
6
|
|
23
|
use warnings; |
|
6
|
|
|
|
|
9
|
|
|
6
|
|
|
|
|
143
|
|
17
|
6
|
|
|
6
|
|
435
|
use Moose; |
|
6
|
|
|
|
|
335111
|
|
|
6
|
|
|
|
|
36
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
with 'DBIx::Schema::Changelog::Action'; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 SUBROUTINES/METHODS |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=over 4 |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=item add |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
Execute sql statements can lead very likely to incompatibilities. |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=cut |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub add { |
32
|
1
|
|
|
1
|
1
|
1
|
my ( $self, $params ) = @_; |
33
|
1
|
|
|
|
|
140
|
print STDERR __PACKAGE__, ' (', __LINE__,'). WARNING: Execute sql statements can lead very likely to incompatibilities.', $/; |
34
|
1
|
|
|
|
|
7
|
$self->_do( $params->{as} ); |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=item alter |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Not needed! |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=cut |
42
|
|
|
|
|
|
|
|
43
|
1
|
|
|
1
|
1
|
717
|
sub alter { } |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=item drop |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Not needed! |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=cut |
50
|
|
|
|
|
|
|
|
51
|
1
|
|
|
1
|
1
|
8
|
sub drop { } |
52
|
|
|
|
|
|
|
|
53
|
6
|
|
|
6
|
|
30079
|
no Moose; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
28
|
|
54
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
1; |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
__END__ |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=back |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 AUTHOR |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Mario Zieschang, C<< <mario.zieschang at combase.de> >> |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
Copyright 2015 Mario Zieschang. |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
71
|
|
|
|
|
|
|
under the terms of the the Artistic License (2.0). You may obtain a |
72
|
|
|
|
|
|
|
copy of the full license at: |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
L<http://www.perlfoundation.org/artistic_license_2_0> |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
Any use, modification, and distribution of the Standard or Modified |
77
|
|
|
|
|
|
|
Versions is governed by this Artistic License. By using, modifying or |
78
|
|
|
|
|
|
|
distributing the Package, you accept this license. Do not use, modify, |
79
|
|
|
|
|
|
|
or distribute the Package, if you do not accept this license. |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
If your Modified Version has been derived from a Modified Version made |
82
|
|
|
|
|
|
|
by someone other than you, you are nevertheless required to ensure that |
83
|
|
|
|
|
|
|
your Modified Version complies with the requirements of this license. |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
This license does not grant you the right to use any trademark, service |
86
|
|
|
|
|
|
|
mark, trade name, or logo of the Copyright Holder. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
This license includes the non-exclusive, worldwide, free-of-charge |
89
|
|
|
|
|
|
|
patent license to make, have made, use, offer to sell, sell, import and |
90
|
|
|
|
|
|
|
otherwise transfer the Package with respect to any patent claims |
91
|
|
|
|
|
|
|
licensable by the Copyright Holder that are necessarily infringed by the |
92
|
|
|
|
|
|
|
Package. If you institute patent litigation (including a cross-claim or |
93
|
|
|
|
|
|
|
counterclaim) against any party alleging that the Package constitutes |
94
|
|
|
|
|
|
|
direct or contributory patent infringement, then this Artistic License |
95
|
|
|
|
|
|
|
to you shall terminate on the date that such litigation is filed. |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER |
98
|
|
|
|
|
|
|
AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. |
99
|
|
|
|
|
|
|
THE IMPLIED WARRANTIES OF MERCHANT ABILITY, FITNESS FOR A PARTICULAR |
100
|
|
|
|
|
|
|
PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY |
101
|
|
|
|
|
|
|
YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR |
102
|
|
|
|
|
|
|
CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR |
103
|
|
|
|
|
|
|
CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, |
104
|
|
|
|
|
|
|
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=cut |