Itβs just interesting that itβs best to add new columns through migration to yii2. The documentation seems to imply adding extra columns that you have to do one for each migration, at least in this example. Yii2 Migration - Add a column . Is this true, or is it normal to add multiple ADDITIONAL columns in one migration? If you would use a specific migration naming convention, for example add_xxx_and_zzz_column_to_yyy_table. Hooray!
add_xxx_and_zzz_column_to_yyy_table
This is not clear from the docs, but you can create multiple columns in a single transition:
yii migrate/create add_xxx_column_yyy_column_to_zzz_table --fields="xxx:integer,yyy:text"
Source: https://habr.com/ru/post/1668178/More articles:registration failed due to old version - YOWSUP - yowsupHow to write a rule to prevent removal of a node from a database - firebase-databaseHow to change database password neo4j - neo4jTCP transitions do not show the expected result in data transfer rate - performanceIs declaring a string literal with a pointer more memory efficient than declaring a persistent array? - cMemory profiling of a running python application - pythonhow to split a numpy array and perform certain actions on split arrays [Python] - pythonUnsatisfiedLinkError Ρ OpenCV ΠΈ Android - androidScroll through an array of objects and sort them - javascriptCSS hexagon button with rounded corners - cssAll Articles