Browse Source

revise schema enabling muting for connections

Andrew Dolgov 3 years ago
parent
commit
1b78328ff2
2 changed files with 6 additions and 0 deletions
  1. 1 0
      schema/ttirc_schema_pgsql.sql
  2. 5 0
      schema/versions/pgsql/13.sql

+ 1 - 0
schema/ttirc_schema_pgsql.sql

@@ -55,6 +55,7 @@ create table ttirc_connections(id serial not null primary key,
 	autojoin text not null default '',
 	auto_connect boolean not null default false,
 	visible boolean not null default true,
+	muted boolean not null default false,
 	userhosts text not null default '',
 	connect_cmd text not null default '',
 	server_password varchar(120) not null default '',

+ 5 - 0
schema/versions/pgsql/13.sql

@@ -5,6 +5,11 @@ update ttirc_channels set muted = false;
 alter table ttirc_channels alter column muted set default false;
 alter table ttirc_channels alter column muted set not null;
 
+alter table ttirc_connections add column muted boolean;
+update ttirc_connections set muted = false;
+alter table ttirc_connections alter column muted set default false;
+alter table ttirc_connections alter column muted set not null;
+
 update ttirc_version set schema_version = 13;
 
 commit;