Upgraded schema and made fixes
This commit is contained in:
parent
26aba2cd9e
commit
b2dfa36d35
12 changed files with 3703 additions and 2 deletions
|
@ -187,7 +187,8 @@ sub post_upload {
|
|||
my $file = defined $upload ? $c->store_file_from_upload( $upload ) : undef;
|
||||
my $category = $validation->param('category');
|
||||
my $essential = $validation->param('essential');
|
||||
my $recurring_period = $validation->('recurring');
|
||||
my $recurring_period = $validation->param('recurring');
|
||||
Dwarn $recurring_period;
|
||||
my $distance = $c->get_distance_from_coords( $user->entity->type_object, $organisation );
|
||||
|
||||
my $new_transaction = $organisation->entity->create_related(
|
||||
|
|
|
@ -6,7 +6,7 @@ use warnings;
|
|||
|
||||
use base 'DBIx::Class::Schema';
|
||||
|
||||
our $VERSION = 24;
|
||||
our $VERSION = 25;
|
||||
|
||||
__PACKAGE__->load_namespaces;
|
||||
|
||||
|
|
|
@ -81,6 +81,11 @@ __PACKAGE__->might_have(
|
|||
"Pear::LocalLoop::Schema::Result::TransactionCategory" => "transaction_id",
|
||||
);
|
||||
|
||||
__PACKAGE__->might_have(
|
||||
"recurring",
|
||||
"Pear::LocalLoop::Schema::Result::TransactionRecurring" => "transaction_id",
|
||||
);
|
||||
|
||||
sub sqlt_deploy_hook {
|
||||
my ( $source_instance, $sqlt_table ) = @_;
|
||||
my $pending_field = $sqlt_table->get_field('essential');
|
||||
|
|
Reference in a new issue