Diff command
diff [--source SOURCE] [--target TARGET] [--ignore-tables IGNORE-TABLES] [-i|--indent INDENT] [--migration MIGRATION] [--dir DIR] [--template TEMPLATE] [-e|--environment ENVIRONMENT] [-c|--config CONFIG] [-t|--config_type CONFIG_TYPE] [-f|--output-format OUTPUT-FORMAT]
Creates new migration file with migration which is diff between source and target database or migrations and database. This command can be used when upgrading some system to newer version and you know the structure of both old and new version or if you make changes in database and you need to generate migration.
Options:
--source=SOURCESource environment from config or nothing if migrations are the source--target=TARGETTarget environment from config or nothing if migrations are the target--ignore-tables=IGNORE-TABLESComma separated list of tables to ignore (Structure and data). Default: phoenix_log-i,--indent=INDENTIndentation. Available values: 2spaces, 3spaces, 4spaces, 5spaces, tab [default: 4spaces]--migration=MIGRATIONThe name of migration. Default: Diff--dir=DIRDirectory to create migration in--template=TEMPLATEPath to template
All other options are common and they are described here.