Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
m130129_130525_login_attempts.php
1 <?php
2 
3 class m130129_130525_login_attempts extends CDbMigration
4 {
5  public function up()
6  {
7  $this->createTable('{{login_attempts}}', array(
8  'ip' => 'string',
9  'attempts' => 'integer',
10  'created' => 'timestamp',
11  'updated' => 'timestamp',
12  'PRIMARY KEY(ip)'
13  ));
14  }
15 
16  public function down()
17  {
18  $this->dropTable('{{login_attempts}}');
19  }
20 
21 }