title: YII migrations and by default values for table columns
body: <pre><code>public function up(){
  
          $this-&gt;createTable('POST', array(
              'id' =&gt; 'pk',
              'isremoved' =&gt; 'integer NOT NULL',
              'removaldate' =&gt; 'timestamp NULL',
              'post' =&gt; 'text NOT NULL',
              'creationdate' =&gt; 'timestamp NOT NULL',
          ));
  }
  </code></pre>
  
  <p>This is the up function for migration. As u see it is query for creating new table. By default YII creates default value for timestamp column equal to CURRENT_TIMESTAMP and crates additional parameter and sets it equal to ON UPDATE CURRENT_TIMESTAMP. </p>
  
  <p>I do not need current value for timestamp and i do not need to update this column on updating row. What i must to do? By the way, u use MySQL</p>