forked from DebaucheryLibrarian/traxxx
Improved campaign component, added various banners.
This commit is contained in:
@@ -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;
|
||||
`);
|
||||
|
||||
Reference in New Issue
Block a user