Skip to content

Commit

Permalink
feat(db): change migration name
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Jan 6, 2024
1 parent 042e496 commit 5f144c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/database/migrations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ timestamp that allows Athenna to determine the order of
the migrations:

```shell
node artisan make:migration create_flights_table
node artisan make:migration FlightsMigration
```

:::tip
Expand All @@ -48,7 +48,7 @@ expressively create and modify tables. For example, the following migration crea
```typescript
import { BaseMigration, type DatabaseImpl } from '@athenna/database'

export class CreateFlightsTable extends BaseMigration {
export class FlightsMigration extends BaseMigration {
public tableName = 'flights'

public async up(db: DatabaseImpl) {
Expand All @@ -75,7 +75,7 @@ you should set the static getter `connection` in your migration:
```typescript
import { BaseMigration, type DatabaseImpl } from '@athenna/database'

export class CreateFlightsTable extends BaseMigration {
export class FlightsMigration extends BaseMigration {
public static connection() {
return 'postgres'
}
Expand Down Expand Up @@ -108,7 +108,7 @@ node artisan migration:run --connection=postgres

:::warning

If `postgres` is your default connection than all the migrations
If `postgres` is your default connection then all the migrations
using the `default` value in the static `connection()` method
will run too.

Expand Down

0 comments on commit 5f144c2

Please sign in to comment.