You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oxford Harrison edited this page Nov 9, 2024
·
6 revisions
Command: linkedql commit
Interactively commit your local file changes to your DB.
What it does: looks through your local schema file and diffs against your active database structure to see what changed, and commits said changes; works interactively by default and lets you preview each query to be run.
Usage
Use the --desc flag to provide a commit description. (REQUIRED)
npx linkedql commit --desc="Initial DB creation"
(If you ommit the --desc flag, you are prompted for a commit description on a db-by-db basis. This can be useful, depending!)
Use the --select flag to explicitly list local schemas to commit:
npx linkedql commit --select=database_1,database_3 --desc="Initial DB creations"
(In this case, any changes ommitted by the selection are discarded!)