Skip to content
Snippets Groups Projects
Verified Commit bb71da40 authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Cleanup

parent ee33a6ff
No related branches found
No related tags found
No related merge requests found
Pipeline #6917 passed
...@@ -17,6 +17,7 @@ __PACKAGE__->add_columns( ...@@ -17,6 +17,7 @@ __PACKAGE__->add_columns(
sequence => 'uid_seq' sequence => 'uid_seq'
}, },
qw( qw(
event_id
datetime datetime
deleted deleted
user_id user_id
......
...@@ -47,6 +47,16 @@ __PACKAGE__->has_many( ...@@ -47,6 +47,16 @@ __PACKAGE__->has_many(
{ 'foreign.event_id' => 'self.id', }, { 'foreign.event_id' => 'self.id', },
); );
__PACKAGE__->has_many(
program_entries => 'CF::Schema::Result::ProgramEntry',
{ 'foreign.event_id' => 'self.id', },
);
__PACKAGE__->has_many(
announcements => 'CF::Schema::Result::Announcement',
{ 'foreign.event_id' => 'self.id', },
);
__PACKAGE__->set_primary_key('id'); __PACKAGE__->set_primary_key('id');
sub format ($self) { sub format ($self) {
......
package CF::Schema::Result::Socket;
use strict;
use warnings;
use base 'DBIx::Class::Core';
our $VERSION = 1;
__PACKAGE__->table('sockets');
__PACKAGE__->add_columns(
qw(
id
ip
user_id
keepalive
),
);
__PACKAGE__->set_primary_key('id');
__PACKAGE__->add_unique_constraint(
'user' => [qw(user_id)]
);
1;
package CF::Schema::Result::Socket_view;
use strict;
use warnings;
use base 'CF::Schema::Result::Socket';
our $VERSION = 1;
__PACKAGE__->table('sockets_view');
__PACKAGE__->add_columns(
qw(
is_member
),
);
1;
openapi: 3.0.3 openapi: 3.0.3
info: info:
version: "2.8.0" version: "2.9.0"
title: CF Online title: CF Online
description: CF Online description: CF Online
license: license:
......
drop view "sockets_view";
drop table "sockets";
alter table "announcements" add column "event_id" integer;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment