1
0
Fork 0
mirror of https://github.com/kou029w/quot.git synced 2025-01-19 08:28:09 +00:00
quot/db/migrations/20220907130637_random_pages.sql

8 lines
157 B
MySQL
Raw Normal View History

2022-09-07 22:54:27 +09:00
-- migrate:up
CREATE FUNCTION random(pages) RETURNS DOUBLE PRECISION LANGUAGE SQL AS $$
SELECT random();
$$;
-- migrate:down
DROP FUNCTION random(pages);