Keep track of the database schema version
The singleton table SchemaVersion contains the current version of the Hydra database schema. This can be used to upgrade the schema on the fly. Also reran the DBIx::Class schema loader.
This commit is contained in:
@@ -1,17 +1,21 @@
|
||||
use utf8;
|
||||
package Hydra::Schema::CachedPathInputs;
|
||||
|
||||
# Created by DBIx::Class::Schema::Loader
|
||||
# DO NOT MODIFY THE FIRST PART OF THIS FILE
|
||||
|
||||
=head1 NAME
|
||||
|
||||
Hydra::Schema::CachedPathInputs
|
||||
|
||||
=cut
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use base 'DBIx::Class::Core';
|
||||
|
||||
|
||||
=head1 NAME
|
||||
|
||||
Hydra::Schema::CachedPathInputs
|
||||
=head1 TABLE: C<CachedPathInputs>
|
||||
|
||||
=cut
|
||||
|
||||
@@ -21,82 +25,60 @@ __PACKAGE__->table("CachedPathInputs");
|
||||
|
||||
=head2 srcpath
|
||||
|
||||
data_type: text
|
||||
default_value: undef
|
||||
data_type: 'text'
|
||||
is_nullable: 0
|
||||
size: undef
|
||||
|
||||
=head2 timestamp
|
||||
|
||||
data_type: integer
|
||||
default_value: undef
|
||||
data_type: 'integer'
|
||||
is_nullable: 0
|
||||
size: undef
|
||||
|
||||
=head2 lastseen
|
||||
|
||||
data_type: integer
|
||||
default_value: undef
|
||||
data_type: 'integer'
|
||||
is_nullable: 0
|
||||
size: undef
|
||||
|
||||
=head2 sha256hash
|
||||
|
||||
data_type: text
|
||||
default_value: undef
|
||||
data_type: 'text'
|
||||
is_nullable: 0
|
||||
size: undef
|
||||
|
||||
=head2 storepath
|
||||
|
||||
data_type: text
|
||||
default_value: undef
|
||||
data_type: 'text'
|
||||
is_nullable: 0
|
||||
size: undef
|
||||
|
||||
=cut
|
||||
|
||||
__PACKAGE__->add_columns(
|
||||
"srcpath",
|
||||
{
|
||||
data_type => "text",
|
||||
default_value => undef,
|
||||
is_nullable => 0,
|
||||
size => undef,
|
||||
},
|
||||
{ data_type => "text", is_nullable => 0 },
|
||||
"timestamp",
|
||||
{
|
||||
data_type => "integer",
|
||||
default_value => undef,
|
||||
is_nullable => 0,
|
||||
size => undef,
|
||||
},
|
||||
{ data_type => "integer", is_nullable => 0 },
|
||||
"lastseen",
|
||||
{
|
||||
data_type => "integer",
|
||||
default_value => undef,
|
||||
is_nullable => 0,
|
||||
size => undef,
|
||||
},
|
||||
{ data_type => "integer", is_nullable => 0 },
|
||||
"sha256hash",
|
||||
{
|
||||
data_type => "text",
|
||||
default_value => undef,
|
||||
is_nullable => 0,
|
||||
size => undef,
|
||||
},
|
||||
{ data_type => "text", is_nullable => 0 },
|
||||
"storepath",
|
||||
{
|
||||
data_type => "text",
|
||||
default_value => undef,
|
||||
is_nullable => 0,
|
||||
size => undef,
|
||||
},
|
||||
{ data_type => "text", is_nullable => 0 },
|
||||
);
|
||||
|
||||
=head1 PRIMARY KEY
|
||||
|
||||
=over 4
|
||||
|
||||
=item * L</srcpath>
|
||||
|
||||
=item * L</sha256hash>
|
||||
|
||||
=back
|
||||
|
||||
=cut
|
||||
|
||||
__PACKAGE__->set_primary_key("srcpath", "sha256hash");
|
||||
|
||||
|
||||
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kZP1P7P2TMUCnnFPIGh1iA
|
||||
# Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4KzXhMnUldVgNuuNXWIYjw
|
||||
|
||||
1;
|
||||
|
||||
Reference in New Issue
Block a user