Gentics Portal.Node PHP API
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
All
Classes
Namespaces
Functions
Variables
Pages
common
migrations
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
}
Generated on Thu Jun 20 2013 14:45:15 for Gentics Portal.Node PHP API by
1.8.1.2