From 3cc5985b56d49903d7b0ea5ae79329272052e0d9 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 21 Jul 2017 09:20:19 +0200 Subject: [PATCH] Bug 1xxxx: DBIx schema changes for Autoincrement Content-Type: text/plain; charset=utf-8 --- Koha/Schema/Result/Autoincrement.pm | 65 +++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 Koha/Schema/Result/Autoincrement.pm diff --git a/Koha/Schema/Result/Autoincrement.pm b/Koha/Schema/Result/Autoincrement.pm new file mode 100644 index 0000000..82e434a --- /dev/null +++ b/Koha/Schema/Result/Autoincrement.pm @@ -0,0 +1,65 @@ +use utf8; +package Koha::Schema::Result::Autoincrement; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + +=head1 NAME + +Koha::Schema::Result::Autoincrement + +=cut + +use strict; +use warnings; + +use base 'DBIx::Class::Core'; + +=head1 TABLE: C + +=cut + +__PACKAGE__->table("autoincrement"); + +=head1 ACCESSORS + +=head2 tablename + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 255 + +=head2 counter + + data_type: 'integer' + is_nullable: 1 + +=cut + +__PACKAGE__->add_columns( + "tablename", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, + "counter", + { data_type => "integer", is_nullable => 1 }, +); + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + +__PACKAGE__->set_primary_key("tablename"); + + +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-07-21 09:12:28 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/oqngm8/JHahowIfaO6zTA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; -- 2.1.4