pastebin/migrations/2019-08-11-113651_add-perl6/up.sql

9 lines
315 B
MySQL
Raw Normal View History

2019-08-11 11:41:57 +00:00
WITH inserted_language AS (
INSERT INTO languages(priority, name, highlighter_mode, mime) VALUES
(10, 'Perl 6', NULL, 'text/x-perl6')
RETURNING language_id
)
INSERT INTO wrappers (language_id, label, code, ordering)
SELECT language_id, 'Run', 'perl6 code', 1
FROM inserted_language;