Improved campaign component, added various banners.

This commit is contained in:
DebaucheryLibrarian
2021-06-28 05:13:41 +02:00
parent 729ca0f968
commit 0a343dfa98
34 changed files with 308 additions and 45 deletions

View File

@@ -1547,7 +1547,7 @@ exports.up = knex => Promise.resolve()
SELECT EXISTS(SELECT true WHERE (SELECT id FROM batches ORDER BY created_at DESC LIMIT 1) = release.created_batch_id);
$$ LANGUAGE sql STABLE;
CREATE FUNCTION banners_ratio(banner banners) RETURNS real AS $$
CREATE FUNCTION banners_ratio(banner banners) RETURNS numeric AS $$
SELECT ROUND(banner.width::decimal / banner.height::decimal, 2);
$$ LANGUAGE SQL STABLE;
`);