Skip to content

Commit

Permalink
Update models to fit mysql (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
wil92 committed Apr 11, 2023
1 parent dcd7fe6 commit 630f0e1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion api/comment/models/comment.settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"options": {
"increments": true,
"timestamps": true,
"draftAndPublish": false
"draftAndPublish": true
},
"attributes": {
"body": {
Expand Down
2 changes: 1 addition & 1 deletion api/link/models/link.settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"options": {
"increments": true,
"timestamps": true,
"draftAndPublish": true
"draftAndPublish": false
},
"attributes": {
"name": {
Expand Down
2 changes: 1 addition & 1 deletion config/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = ({env}) => ({
database: 'blog',
username: 'api',
password: 'password',
port: 3310,
port: env.int('DATABASE_PORT', 3306),
host: '127.0.0.1',
},
options: {},
Expand Down
7 changes: 3 additions & 4 deletions extensions/users-permissions/models/User.settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
"description": ""
},
"options": {
"timestamps": [
"createdAt",
"updatedAt"
]
"increments": true,
"timestamps": true,
"draftAndPublish": false
},
"attributes": {
"username": {
Expand Down

0 comments on commit 630f0e1

Please sign in to comment.