kosmeticky vylepseni migracnich skriptu
authorThomas Mudrunka <tomas@mudrunka.cz>
Wed, 11 Apr 2012 11:56:35 +0000 (13:56 +0200)
committerThomas Mudrunka <tomas@mudrunka.cz>
Wed, 11 Apr 2012 11:56:35 +0000 (13:56 +0200)
assistants/migrations.inc.php

index acfe3bf72b4170c98746d738da8041e3781b86f4..c492ecb4e936b3975a5e9e3f4890300b70df5bf5 100644 (file)
@@ -1,8 +1,9 @@
 <pre>
-<h1>populate columns item_date_bought and item_date_sold</h1><?php
+<h1>-- populate columns item_date_bought and item_date_sold</h1><?php
 $data = $this->db->safe_query_fetch('SELECT item_id,MIN(item_valid_from) AS min,MAX(item_valid_from) AS max FROM item GROUP BY item_id;');
 //print_r($data);
 echo("START TRANSACTION;\n");
 foreach($data as $line) echo("UPDATE item SET item_date_bought='".$line['min']."',item_date_sold='".$line['max']."' WHERE item_id=".$line['item_id'].";\n");
 echo("COMMIT;\n");
 ?>
+</pre>
This page took 0.105169 seconds and 4 git commands to generate.