Fixing content type ordering when content_type is not defined.
[akelos.git] / lib / utils / generators / model / templates / installer.tpl
blobac48193320238771887e9d52c34a6683dc73ec5d
1 <?php  echo '<?php'?>
3 class <?php  echo $class_name?>Installer extends AkInstaller
5     function up_1()
6     {
7         $this->createTable('<?php  echo AkInflector::tableize($class_name); ?>', "
8         <?php  if(empty($table_columns)) : ?>
9           id,
10           name
11          <?php else: ?>
12          <?php echo $table_columns; ?>
13          <?php endif; ?>
14         ");
15     }
16     
17     function down_1()
18     {
19         $this->dropTable('<?php  echo AkInflector::tableize($class_name); ?>');
20     }