@@ -479,15 +479,16 @@ defmodule Ecto.Migration do
479479
480480 To define a table in a migration, see `Ecto.Migration.table/2`.
481481 """
482- defstruct name: nil , prefix: nil , comment: nil , primary_key: true , engine: nil , options: nil
482+ defstruct name: nil , prefix: nil , comment: nil , primary_key: true , engine: nil , options: nil , modifiers: nil
483483
484484 @ type t :: % __MODULE__ {
485485 name: String . t ( ) ,
486486 prefix: String . t ( ) | nil ,
487487 comment: String . t ( ) | nil ,
488488 primary_key: boolean | keyword ( ) ,
489489 engine: atom ,
490- options: String . t ( )
490+ options: String . t ( ) ,
491+ modifiers: String . t ( ) | nil
491492 }
492493 end
493494
@@ -824,6 +825,10 @@ defmodule Ecto.Migration do
824825 * `:options` - provide custom options that will be appended after the generated
825826 statement. For example, "WITH", "INHERITS", or "ON COMMIT" clauses. "PARTITION BY"
826827 can be provided for databases that support table partitioning.
828+ * `:modifiers` - provide custom modifiers that should be inserted to the
829+ table creation statement, between the tokens "CREATE" and "TABLE". For
830+ example, "UNLOGGED", "GLOBAL", "TEMPORARY", or "GLOBAL TEMPORARY" in
831+ PostgreSQL.
827832
828833 """
829834 def table ( name , opts \\ [ ] )
0 commit comments