Bugzilla – Attachment 157020 Details for
Bug 33537
Move domain limits from koha-conf to staff SMTP configuration
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33537: [DBIx] Schema changes for mail_domain_limits
Bug-33537-DBIx-Schema-changes-for-maildomainlimits.patch (text/plain), 3.43 KB, created by
Marcel de Rooy
on 2023-10-13 07:30:43 UTC
(
hide
)
Description:
Bug 33537: [DBIx] Schema changes for mail_domain_limits
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2023-10-13 07:30:43 UTC
Size:
3.43 KB
patch
obsolete
>From 71d32fef4399f36e02edff38932174d4e0c62ac5 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Wed, 28 Jun 2023 13:02:05 +0000 >Subject: [PATCH] Bug 33537: [DBIx] Schema changes for mail_domain_limits >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com> >--- > Koha/Schema/Result/MailDomainLimit.pm | 155 ++++++++++++++++++++++++++ > 1 file changed, 155 insertions(+) > create mode 100644 Koha/Schema/Result/MailDomainLimit.pm > >diff --git a/Koha/Schema/Result/MailDomainLimit.pm b/Koha/Schema/Result/MailDomainLimit.pm >new file mode 100644 >index 0000000000..f47ad38d5a >--- /dev/null >+++ b/Koha/Schema/Result/MailDomainLimit.pm >@@ -0,0 +1,155 @@ >+use utf8; >+package Koha::Schema::Result::MailDomainLimit; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+=head1 NAME >+ >+Koha::Schema::Result::MailDomainLimit >+ >+=cut >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+=head1 TABLE: C<mail_domain_limits> >+ >+=cut >+ >+__PACKAGE__->table("mail_domain_limits"); >+ >+=head1 ACCESSORS >+ >+=head2 id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 domain_name >+ >+ data_type: 'tinytext' >+ is_nullable: 0 >+ >+=head2 domain_limit >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 units >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ >+=head2 unit_type >+ >+ data_type: 'enum' >+ extra: {list => ["minutes","hours","days"]} >+ is_nullable: 1 >+ >+=head2 belongs_to >+ >+ accessor: undef >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "domain_name", >+ { data_type => "tinytext", is_nullable => 0 }, >+ "domain_limit", >+ { data_type => "integer", is_nullable => 1 }, >+ "units", >+ { data_type => "integer", is_nullable => 1 }, >+ "unit_type", >+ { >+ data_type => "enum", >+ extra => { list => ["minutes", "hours", "days"] }, >+ is_nullable => 1, >+ }, >+ "belongs_to", >+ { >+ accessor => undef, >+ data_type => "integer", >+ is_foreign_key => 1, >+ is_nullable => 1, >+ }, >+); >+ >+=head1 PRIMARY KEY >+ >+=over 4 >+ >+=item * L</id> >+ >+=back >+ >+=cut >+ >+__PACKAGE__->set_primary_key("id"); >+ >+=head1 UNIQUE CONSTRAINTS >+ >+=head2 C<mail_domain_limits_uniq1> >+ >+=over 4 >+ >+=item * L</domain_name> >+ >+=back >+ >+=cut >+ >+__PACKAGE__->add_unique_constraint("mail_domain_limits_uniq1", ["domain_name"]); >+ >+=head1 RELATIONS >+ >+=head2 belongs_to_rel >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::MailDomainLimit> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "belongs_to_rel", >+ "Koha::Schema::Result::MailDomainLimit", >+ { id => "belongs_to" }, >+ { >+ is_deferrable => 1, >+ join_type => "LEFT", >+ on_delete => "CASCADE", >+ on_update => "CASCADE", >+ }, >+); >+ >+=head2 mail_domain_limits >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::MailDomainLimit> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "mail_domain_limits", >+ "Koha::Schema::Result::MailDomainLimit", >+ { "foreign.belongs_to" => "self.id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-07-03 08:44:06 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ua1qQTtFvrZGtMMBvsCaHg >+ >+ >+# You can replace this text with custom code or comments, and it will be preserved on regeneration >+1; >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33537
:
153351
|
153352
|
153353
|
153354
|
153355
|
153356
|
153357
|
153358
|
153359
|
153361
|
153362
|
153363
|
153364
|
154769
|
154770
|
154771
|
154772
|
154773
|
154774
|
154775
|
154776
|
154777
|
154778
|
154779
|
154818
|
154819
|
154820
|
154821
|
154822
|
154823
|
154824
|
154825
|
154826
|
154827
|
154828
|
154829
|
154830
|
154831
|
154832
|
154833
|
154869
|
154870
|
154871
|
154872
|
154873
|
157017
|
157018
|
157019
|
157020
|
157021
|
157022
|
157023
|
157024
|
157025
|
157026
|
157027
|
157028
|
157029
|
157030
|
157031
|
157032
|
157038
|
157039
|
157040
|
157041
|
157042
|
157043
|
157044
|
157045
|
157046
|
157047
|
157048