mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-09-19 12:31:00 +02:00
11 lines
265 B
PL/PgSQL
11 lines
265 B
PL/PgSQL
begin;
|
|
|
|
alter table ttrss_entries add column num_comments integer;
|
|
|
|
update ttrss_entries set num_comments = 0;
|
|
|
|
alter table ttrss_entries change num_comments num_comments integer not null;
|
|
alter table ttrss_entries alter column num_comments set default 0;
|
|
|
|
commit;
|