Commit e70ff61f authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'fix-regenerate-schema-docs' into 'master'

Fix regenerate-schema script location in docs

See merge request gitlab-org/gitlab!30723
parents 4095185d 8a650075
...@@ -44,7 +44,7 @@ other people using `db/structure.sql` generated by Rails. ...@@ -44,7 +44,7 @@ other people using `db/structure.sql` generated by Rails.
When your local database in your GDK is diverging from the schema from When your local database in your GDK is diverging from the schema from
`master` it might be hard to cleanly commit the schema changes to `master` it might be hard to cleanly commit the schema changes to
Git. In that case you can use the `script/regenerate-schema` script to Git. In that case you can use the `scripts/regenerate-schema` script to
regenerate a clean `db/structure.sql` for the migrations you're regenerate a clean `db/structure.sql` for the migrations you're
adding. This script will apply all migrations found in `db/migrate` adding. This script will apply all migrations found in `db/migrate`
or `db/post_migrate`, so if there are any migrations you don't want to or `db/post_migrate`, so if there are any migrations you don't want to
...@@ -53,10 +53,10 @@ targetting `master` you can set the `TARGET` environment variable. ...@@ -53,10 +53,10 @@ targetting `master` you can set the `TARGET` environment variable.
```sh ```sh
# Regenerate schema against `master` # Regenerate schema against `master`
bin/regenerate-schema scripts/regenerate-schema
# Regenerate schema against `12-9-stable-ee` # Regenerate schema against `12-9-stable-ee`
TARGET=12-9-stable-ee bin/regenerate-schema TARGET=12-9-stable-ee scripts/regenerate-schema
``` ```
## What Requires Downtime? ## What Requires Downtime?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment