| @@ 37-48 (lines=12) @@ | ||
| 34 | * |
|
| 35 | * @return BaseTable The table object with a created column added. |
|
| 36 | */ |
|
| 37 | public function addCreated() |
|
| 38 | { |
|
| 39 | return $this->addColumn( |
|
| 40 | 'created', |
|
| 41 | 'datetime', |
|
| 42 | [ |
|
| 43 | 'default' => null, |
|
| 44 | 'limit' => null, |
|
| 45 | 'null' => true, |
|
| 46 | ] |
|
| 47 | ); |
|
| 48 | } |
|
| 49 | ||
| 50 | /** |
|
| 51 | * Add a Modified Timestamp Column |
|
| @@ 57-68 (lines=12) @@ | ||
| 54 | * |
|
| 55 | * @return BaseTable The table object with a modified column added. |
|
| 56 | */ |
|
| 57 | public function addModified() |
|
| 58 | { |
|
| 59 | return $this->addColumn( |
|
| 60 | 'modified', |
|
| 61 | 'datetime', |
|
| 62 | [ |
|
| 63 | 'default' => null, |
|
| 64 | 'limit' => null, |
|
| 65 | 'null' => true, |
|
| 66 | ] |
|
| 67 | ); |
|
| 68 | } |
|
| 69 | } |
|
| 70 | ||