Add CLI interface, news_view, sql reqs fixes

This commit is contained in:
norohind committed 2021-10-26 00:36:31 +03:00
1 parent 98c19910f6
commit fe05148598
3 files changed
+83 -6

No files matched your search

+10
View File
@@ -61,3 +61,13 @@ author text,
cmdr_id int,
user_id int,
inserted_timestamp datetime default current_timestamp);
create view if not exists news_view
as
select *
from news
where inserted_timestamp in (
select max(inserted_timestamp)
from news
group by squad_id)
group by squad_id;