graphql-engine/docs/examples_schema_migrations/1530873869630_run_sql_migration.up.yaml
2018-09-11 16:41:24 +05:30

24 lines
5.0 KiB
YAML

- args:
sql: |-
insert into article (id, title, content, rating, author_id, is_published, published_on) values (1, 'sit amet', 'Aliquam erat volutpat. In congue.', 1, 4, true, '2017-08-09');
insert into article (id, title, content, rating, author_id, is_published, published_on) values (2, 'a nibh', 'Quisque porta volutpat erat. Quisque erat eros, viverra eget, congue eget, semper rutrum, nulla. Nunc purus.', 3, 2, true, '2018-06-10');
insert into article (id, title, content, rating, author_id, is_published, published_on) values (3, 'amet justo morbi', 'Maecenas tristique, est et tempus semper, est quam pharetra magna, ac consequat metus sapien ut nunc. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Mauris viverra diam vitae quam. Suspendisse potenti.', 4, 4, true, '2017-05-26');
insert into article (id, title, content, rating, author_id, is_published, published_on) values (4, 'vestibulum ac est', 'Integer tincidunt ante vel ipsum. Praesent blandit lacinia erat.', 2, 5, true, '2017-03-05');
insert into article (id, title, content, rating, author_id, is_published, published_on) values (5, 'ut blandit', 'Quisque erat eros, viverra eget, congue eget, semper rutrum, nulla. Nunc purus. Phasellus in felis.', 2, 5, false, '2017-01-01');
insert into article (id, title, content, rating, author_id, is_published, published_on) values (6, 'sapien ut', 'Nulla ac enim. In tempor, turpis nec euismod scelerisque, quam turpis adipiscing lorem, vitae mattis nibh ligula nec sem.', 1, 3, true, '2018-01-08');
insert into article (id, title, content, rating, author_id, is_published, published_on) values (7, 'nisl duis ac', 'Vestibulum quam sapien, varius ut, blandit non, interdum in, ante. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Duis faucibus accumsan odio.', 4, 6, true, '2016-07-09');
insert into article (id, title, content, rating, author_id, is_published, published_on) values (8, 'donec semper sapien', 'Praesent blandit. Nam nulla. Integer pede justo, lacinia eget, tincidunt eget, tempus vel, pede.', 3, 6, false, '2016-07-16');
insert into article (id, title, content, rating, author_id, is_published, published_on) values (9, 'sit amet', 'In tempor, turpis nec euismod scelerisque, quam turpis adipiscing lorem, vitae mattis nibh ligula nec sem. Duis aliquam convallis nunc. Proin at turpis a pede posuere nonummy.', 3, 2, true, '2017-05-16');
insert into article (id, title, content, rating, author_id, is_published, published_on) values (10, 'dui proin leo', 'Integer non velit. Donec diam neque, vestibulum eget, vulputate ut, ultrices vel, augue.', 3, 10, false, '2016-07-06');
insert into article (id, title, content, rating, author_id, is_published, published_on) values (11, 'turpis eget', 'Suspendisse potenti. Cras in purus eu magna vulputate luctus.', 3, 3, true, '2017-04-14');
insert into article (id, title, content, rating, author_id, is_published, published_on) values (12, 'volutpat quam pede', 'Aliquam erat volutpat. In congue.', 3, 5, true, '2016-10-24');
insert into article (id, title, content, rating, author_id, is_published, published_on) values (13, 'vulputate elementum', 'Nulla nisl. Nunc nisl.', 4, 8, true, '2018-03-10');
insert into article (id, title, content, rating, author_id, is_published, published_on) values (14, 'congue etiam justo', 'Maecenas pulvinar lobortis est. Phasellus sit amet erat. Nulla tempus.', 4, 3, false, '2017-07-02');
insert into article (id, title, content, rating, author_id, is_published, published_on) values (15, 'vel dapibus at', 'Etiam vel augue. Vestibulum rutrum rutrum neque.', 4, 1, true, '2018-01-02');
insert into article (id, title, content, rating, author_id, is_published, published_on) values (16, 'sem duis aliquam', 'Maecenas leo odio, condimentum id, luctus nec, molestie sed, justo. Pellentesque viverra pede ac diam.', 1, 1, true, '2018-02-14');
insert into article (id, title, content, rating, author_id, is_published, published_on) values (17, 'montes nascetur ridiculus', 'Nulla justo. Aliquam quis turpis eget elit sodales scelerisque. Mauris sit amet eros.', 5, 5, false, '2018-04-18');
insert into article (id, title, content, rating, author_id, is_published, published_on) values (18, 'ipsum primis in', 'Morbi vel lectus in quam fringilla rhoncus. Mauris enim leo, rhoncus sed, vestibulum sit amet, cursus id, turpis. Integer aliquet, massa id lobortis convallis, tortor risus dapibus augue, vel accumsan tellus nisi eu orci.', 2, 7, false, '2017-06-25');
insert into article (id, title, content, rating, author_id, is_published, published_on) values (19, 'pede venenatis', 'Pellentesque ultrices mattis odio. Donec vitae nisi.', 2, 5, false, '2017-01-06');
insert into article (id, title, content, rating, author_id, is_published, published_on) values (20, 'eu nibh', 'Ut at dolor quis odio consequat varius. Integer ac leo.', 2, 8, true, '2017-01-10');
type: run_sql