Skip to content

Commit

Permalink
chore: run prettier format
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Feb 29, 2024
1 parent d2f2681 commit 6075cd5
Show file tree
Hide file tree
Showing 159 changed files with 4,474 additions and 3,294 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ module.exports = {
},
},
],
}
};
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ exports.up = (pgm) => {
notNull: true,
default: pgm.func('current_timestamp'),
},
})
});
pgm.createTable('posts', {
id: 'id',
userId: {
Expand All @@ -56,9 +56,9 @@ exports.up = (pgm) => {
notNull: true,
default: pgm.func('current_timestamp'),
},
})
pgm.createIndex('posts', 'userId')
}
});
pgm.createIndex('posts', 'userId');
};
```

Save migration file.
Expand All @@ -76,8 +76,8 @@ Run `npm run migrate create posts lead`, edit `xxx_posts_lead.js`:
exports.up = (pgm) => {
pgm.addColumns('posts', {
lead: { type: 'text', notNull: true },
})
}
});
};
```

Run `npm run migrate up` and there will be new column in `posts` table :tada: :tada:
Expand Down
Loading

0 comments on commit 6075cd5

Please sign in to comment.