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:
Eelco Dolstra
2011-12-05 14:29:29 +01:00
parent 3b9a62c964
commit 9032c55aa6
35 changed files with 1551 additions and 2187 deletions

View File

@@ -1,17 +1,21 @@
use utf8;
package Hydra::Schema::CachedCVSInputs;
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Hydra::Schema::CachedCVSInputs
=cut
use strict;
use warnings;
use base 'DBIx::Class::Core';
=head1 NAME
Hydra::Schema::CachedCVSInputs
=head1 TABLE: C<CachedCVSInputs>
=cut
@@ -21,97 +25,70 @@ __PACKAGE__->table("CachedCVSInputs");
=head2 uri
data_type: text
default_value: undef
data_type: 'text'
is_nullable: 0
size: undef
=head2 module
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(
"uri",
{
data_type => "text",
default_value => undef,
is_nullable => 0,
size => undef,
},
{ data_type => "text", is_nullable => 0 },
"module",
{
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</uri>
=item * L</module>
=item * L</sha256hash>
=back
=cut
__PACKAGE__->set_primary_key("uri", "module", "sha256hash");
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-02-25 10:29:41
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XfIRW2I//m0W9D6jCmYJGA
# Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IcSVN/tlfQQtX88Ix+aKnw
# You can replace this text with custom content, and it will be preserved on regeneration
1;