Skip to content

Commit

Permalink
Added a note about enumerations not being editable after creation (wi…
Browse files Browse the repository at this point in the history
…thout knex.raw), as per knex/knex#1699 (#314)
  • Loading branch information
machineghost committed Nov 23, 2021
1 parent e218c47 commit 1864260
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sections/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,10 @@ export default [
type: 'code',
language: 'js',
content: `table.enu('column', null, { useNative: true, existingType: true, enumName: 'foo_type', schemaName: 'public' })`
}, {
type: 'text',
language: 'js',
content: `Knex does not provide any way to alter enumerations after creation. To change an enumeration later on you must use Knex.raw, and the appropriate command for your database.`
}
]
},
Expand Down

0 comments on commit 1864260

Please sign in to comment.