Replies: 3 comments 7 replies
-
Yeah, I think the safer option would be to keep them separate for now. Other than that, this looks beautiful in its simplicity. |
Beta Was this translation helpful? Give feedback.
-
@tailhook Just started testing this, and I've run into a question. I changed my schema from this:
to this:
which produces a schema error:
What's the ideal workflow for me at this point? Is the |
Beta Was this translation helpful? Give feedback.
-
current I'd expect if schema can be watched, so all the dependent queries (this can be optional). |
Beta Was this translation helpful? Give feedback.
-
First step stays as is for now:
Then in a terminal separate from your main application, start the
watch
command:If
Initialized. Monitoring
is printed and no error, you're good to go:dbschema/*
filesedgedb watch
. You should either see a spinner (in case migration took more time than expected) or the error.You are free to run
git pull/git switch
or edit files indbschema
(including migrations) in any way you want. As long as changes are valid and non-conflictingedgedb watch
will pick up new files seamlessly.Comitting Schema
When you're ready to share schema with your team do:
At this point all your changes since your last migration will be verified again. You have an opportunity:
Now commit both schema and migrations:
Beta Was this translation helpful? Give feedback.
All reactions