Skip to content

Commit

Permalink
Tea fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mloberg committed Nov 18, 2011
1 parent 060f16f commit 872319a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tfd/tea/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ public static function init(){
'null' => false,
'default' => false,
'extra' => 'auto_increment',
'key' => 'primary'
'key' => 'primary key'
),
'username' => array(
'type' => 'varchar',
Expand Down
10 changes: 6 additions & 4 deletions tfd/tea/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ public static function action($args){
}

// remove git related files
self::recursive_rm(BASE_DIR.'.git');
@unlink(BASE_DIR.'.gitignore');
@unlink(BASE_DIR.'cache/.gitignore');
@unlink(CONTENT_DIR.'/views/public/.gitignore');
if(is_dir(BASE_DIR.'.git')){
self::recursive_rm(BASE_DIR.'.git');
@unlink(BASE_DIR.'.gitignore');
@unlink(BASE_DIR.'cache/.gitignore');
@unlink(CONTENT_DIR.'/views/public/.gitignore');
}

// include our config file
include_once(CONTENT_DIR.'config'.EXT);
Expand Down

0 comments on commit 872319a

Please sign in to comment.