mirror of
https://github.com/ent/ent.git
synced 2026-05-22 09:31:45 +03:00
* doc: upadte migrate diff command * Update doc/md/components/_installation_instructions.mdx Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com> * Update doc/md/getting-started.mdx Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com> * Update doc/md/getting-started.mdx Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com> * Update doc/md/getting-started.mdx Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com> * Update doc/md/getting-started.mdx Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com> * Update doc/md/getting-started.mdx Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com> * Update doc/md/getting-started.mdx Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com> * Update doc/md/getting-started.mdx Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com> * Update doc/md/getting-started.mdx Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com> * Update doc/md/getting-started.mdx Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com> * Update doc/md/versioned-migrations.mdx Co-authored-by: Rotem Tamir <rotemtamir@gmail.com> * Update doc/md/versioned-migrations.mdx Co-authored-by: Rotem Tamir <rotemtamir@gmail.com> --------- Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com> Co-authored-by: Rotem Tamir <rotemtamir@gmail.com>
52 lines
1.1 KiB
Plaintext
52 lines
1.1 KiB
Plaintext
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
<Tabs
|
|
defaultValue="mysql"
|
|
values={[
|
|
{label: 'MySQL', value: 'mysql'},
|
|
{label: 'MariaDB', value: 'maria'},
|
|
{label: 'PostgreSQL', value: 'postgres'},
|
|
{label: 'SQLite', value: 'sqlite'},
|
|
]}>
|
|
<TabItem value="mysql">
|
|
|
|
```shell
|
|
atlas migrate diff migration_name \
|
|
--dir "file://ent/migrate/migrations" \
|
|
--to "ent://ent/schema" \
|
|
--dev-url "docker://mysql/8/ent"
|
|
```
|
|
|
|
</TabItem>
|
|
<TabItem value="maria">
|
|
|
|
```shell
|
|
atlas migrate diff migration_name \
|
|
--dir "file://ent/migrate/migrations" \
|
|
--to "ent://ent/schema" \
|
|
--dev-url "docker://mariadb/latest/test"
|
|
```
|
|
|
|
</TabItem>
|
|
<TabItem value="postgres">
|
|
|
|
```shell
|
|
atlas migrate diff migration_name \
|
|
--dir "file://ent/migrate/migrations" \
|
|
--to "ent://ent/schema" \
|
|
--dev-url "docker://postgres/15/test?search_path=public"
|
|
```
|
|
|
|
</TabItem>
|
|
<TabItem value="sqlite">
|
|
|
|
```shell
|
|
atlas migrate diff migration_name \
|
|
--dir "file://ent/migrate/migrations" \
|
|
--to "ent://ent/schema" \
|
|
--dev-url "sqlite://file?mode=memory&_fk=1"
|
|
```
|
|
|
|
</TabItem>
|
|
</Tabs> |