Skip to content

Commit

Permalink
docs(authentication-service): added migration docs
Browse files Browse the repository at this point in the history
  • Loading branch information
akshatdubeysf committed Apr 1, 2021
1 parent 6847439 commit d990b74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion services/authentication-service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export class AuthenticationDbDataSource

### Migrations

Refer to [Database Migrations | LoopBack Documentation](https://loopback.io/doc/en/lb4/Database-migrations.html) for instructions for handling migrations.
The migrations required for this service are processed during the installation automatically, if you plan to use the [Loopback Database Migrations] (https://loopback.io/doc/en/lb4/Database-migrations.html) or your own migrations, you can the auto-migration by setting the `AUTH_MIGRATION_SKIP` to true before installing the package.

### API Documentation

Expand Down
4 changes: 2 additions & 2 deletions services/authentication-service/migration.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ try {
} catch (err) {
console.info('\n');
}
if (isLocal) {
console.info(`Skipping "postinstall" script on local installs`);
if (isLocal || process.env.AUTH_MIGRATION_SKIP) {
console.info(`Skipping migrations`);
} else {
dotenv.config();
dotenvExt.load({
Expand Down

0 comments on commit d990b74

Please sign in to comment.