While creating migration files, I found generated sql is not linted. Like below example, they are hard for human to read.
CREATE TRIGGER set_public_tag_updated_at BEFORE UPDATE ON public.tag FOR EACH ROW EXECUTE PROCEDURE public.set_current_timestamp_updated_at();
COMMENT ON TRIGGER set_public_tag_updated_at ON public.tag IS 'trigger to set value of column "updated_at" to current timestamp on row update';
ALTER TABLE ONLY public.article
ADD CONSTRAINT article_author_id_fkey FOREIGN KEY (author_id) REFERENCES public.author(id) ON UPDATE CASCADE ON DELETE CASCADE;
If this is not intentional, I think formatting them would be good! There is a opensource Postgres formatter like https://github.com/darold/pgFormatter as well.
Hi!
Thank you for this great BaaS!
While creating migration files, I found generated sql is not linted. Like below example, they are hard for human to read.
If this is not intentional, I think formatting them would be good! There is a opensource Postgres formatter like https://github.com/darold/pgFormatter as well.
How do you think?