Skip to content

Commit

Permalink
fix case
Browse files Browse the repository at this point in the history
  • Loading branch information
zfben committed Feb 2, 2025
1 parent 3f28a11 commit 320ffe4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
5 changes: 0 additions & 5 deletions src/cli/__tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ describe('cli', () => {
'Status:'
)
)
expect(console.log).toHaveBeenCalledWith(
expect.stringContaining(
'Lock:'
)
)
expect(console.log).toHaveBeenCalledWith(
expect.stringContaining(
'Migrations:'
Expand Down
2 changes: 1 addition & 1 deletion src/schema-builder/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ describe('SchemaBuilder', () => {
})
table.alterColumn('updated_at', {
type: 'date',
defaultValue: 'NULL',
defaultValue: null,
primary: true,
unique: true,
check: 'updated_at > now()',
Expand Down
3 changes: 3 additions & 0 deletions src/schema-builder/table-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@ export class TableBuilder {
class ColumnBuilder {
constructor(private definition: ColumnDefinition) { }

/**
* Set the column to be nullable or not, default is true
*/
nullable(isNullable = true) {
this.definition.nullable = isNullable
return this
Expand Down

0 comments on commit 320ffe4

Please sign in to comment.