Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
systems:yii2:migrations [2018/04/18 12:41] smayr [Create SQL View] |
systems:yii2:migrations [2018/04/19 10:07] (current) smayr [New Notation] |
||
---|---|---|---|
Line 267: | Line 267: | ||
class m160601_220000_skeleton extends Migration | class m160601_220000_skeleton extends Migration | ||
{ | { | ||
+ | private $useExtendedUserProfile = false; | ||
+ | | ||
public function up() | public function up() | ||
{ | { | ||
Line 272: | Line 274: | ||
$this-> | $this-> | ||
$this-> | $this-> | ||
+ | |||
+ | if ($this-> | ||
+ | $this-> | ||
+ | } | ||
} | } | ||
Line 277: | Line 283: | ||
{ | { | ||
$this-> | $this-> | ||
+ | | ||
return true; | return true; | ||
} | } | ||
Line 308: | Line 315: | ||
$this-> | $this-> | ||
$this-> | $this-> | ||
+ | } | ||
+ | | ||
+ | if ($this-> | ||
+ | // Restore any original table changes | ||
+ | $this-> | ||
} | } | ||
} | } | ||
+ | } | ||
+ | | ||
+ | private function alter_user_table() | ||
+ | { | ||
+ | $this-> | ||
+ | $this-> | ||
+ | $this-> | ||
+ | $this-> | ||
+ | $this-> | ||
+ | $this-> | ||
+ | // $this-> | ||
+ | // $this-> | ||
+ | // $this-> | ||
+ | // $this-> | ||
+ | $this-> | ||
+ | } | ||
+ | | ||
+ | private function restore_user_table() | ||
+ | { | ||
+ | $this-> | ||
+ | $this-> | ||
+ | $this-> | ||
+ | $this-> | ||
+ | $this-> | ||
+ | $this-> | ||
+ | $this-> | ||
+ | $this-> | ||
+ | $this-> | ||
} | } | ||
| | ||
Line 550: | Line 590: | ||
// Add reference_code to all records | // Add reference_code to all records | ||
foreach((new Query)-> | foreach((new Query)-> | ||
- | $this-> | + | $this-> |
} | } | ||
</ | </ | ||
Line 559: | Line 599: | ||
foreach((new Query)-> | foreach((new Query)-> | ||
// DELETE price WHERE reference_code = ' | // DELETE price WHERE reference_code = ' | ||
- | $this-> | + | $this-> |
} | } | ||
</ | </ |