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