Difference between revisions of "Atlas sql migrations"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
``` | ``` | ||
atlas schema inspect --url sqlite://ucms.db --format '{{ sql . }}' | atlas schema inspect --url sqlite://ucms.db --format '{{ sql . }}' | ||
+ | |||
+ | atlas schema diff --to file://migrations --from sqlite://foo.db --dev-url sqlite://foo.db | ||
atlas schema diff --from file://migrations --to sqlite://foo.db --dev-url sqlite://bar.db | atlas schema diff --from file://migrations --to sqlite://foo.db --dev-url sqlite://bar.db | ||
`` | `` |
Revision as of 01:38, 14 April 2024
https://github.com/ariga/atlas
``` atlas schema inspect --url sqlite://ucms.db --format 'Template:Sql .'
atlas schema diff --to file://migrations --from sqlite://foo.db --dev-url sqlite://foo.db
atlas schema diff --from file://migrations --to sqlite://foo.db --dev-url sqlite://bar.db ``