diff --git a/DB/etc/schema.sql b/DB/etc/schema.sql index 2ac1ff9..900fec5 100644 --- a/DB/etc/schema.sql +++ b/DB/etc/schema.sql @@ -140,7 +140,7 @@ CREATE TABLE invite ( ); -- Servers that we will deploy the blogs to. -CREATE TABLE servers ( +CREATE TABLE server ( id serial PRIMARY KEY, hostname text not null, created_at timestamptz not null default current_timestamp diff --git a/DB/lib/MJB/DB/Result/Server.pm b/DB/lib/MJB/DB/Result/Server.pm index 6d677d1..c892d66 100644 --- a/DB/lib/MJB/DB/Result/Server.pm +++ b/DB/lib/MJB/DB/Result/Server.pm @@ -29,11 +29,11 @@ use base 'DBIx::Class::Core'; __PACKAGE__->load_components("InflateColumn::DateTime", "InflateColumn::Serializer"); -=head1 TABLE: C +=head1 TABLE: C =cut -__PACKAGE__->table("servers"); +__PACKAGE__->table("server"); =head1 ACCESSORS @@ -42,7 +42,7 @@ __PACKAGE__->table("servers"); data_type: 'integer' is_auto_increment: 1 is_nullable: 0 - sequence: 'servers_id_seq' + sequence: 'server_id_seq' =head2 hostname @@ -63,7 +63,7 @@ __PACKAGE__->add_columns( data_type => "integer", is_auto_increment => 1, is_nullable => 0, - sequence => "servers_id_seq", + sequence => "server_id_seq", }, "hostname", { data_type => "text", is_nullable => 0 }, @@ -88,8 +88,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("id"); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-11-04 18:27:03 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6RiN3g03SNXpBYy1y6rQbA +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-11-11 23:08:18 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KSkwM+UHx71G+b9pjhEuZQ # You can replace this text with custom code or comments, and it will be preserved on regeneration