1 | <?php namespace jlourenco\base\Database; |
||
9 | class Blueprint extends IlluminateBlueprint { |
||
10 | |||
11 | /** |
||
12 | * Create a new binary column on the table. |
||
13 | * |
||
14 | * @param string $column |
||
15 | * @param int $length |
||
16 | * @return \Illuminate\Support\Fluent |
||
17 | */ |
||
18 | public function binary($column, $length = 255) |
||
22 | |||
23 | /** |
||
24 | * Add creation and update user information to the table. |
||
25 | * |
||
26 | * @return void |
||
27 | */ |
||
28 | public function creation() |
||
38 | |||
39 | /** |
||
40 | * Create a new 'set' column on the table. |
||
41 | * |
||
42 | * @param string $column |
||
43 | * @param array $allowed |
||
44 | * @return \Illuminate\Support\Fluent |
||
45 | */ |
||
46 | public function set($column, array $allowed) |
||
50 | |||
51 | /** |
||
52 | * Specify a unique index for the table. |
||
53 | * |
||
54 | * @param string|array $columns |
||
55 | * @param string $name |
||
56 | * @param int $length |
||
57 | * @return \Illuminate\Support\Fluent |
||
58 | */ |
||
59 | public function unique($columns, $name = null, $length = null) |
||
63 | |||
64 | /** |
||
65 | * Specify an index for the table. |
||
66 | * |
||
67 | * @param string|array $columns |
||
68 | * @param string $name |
||
69 | * @param int $length |
||
70 | * @return \Illuminate\Support\Fluent |
||
71 | */ |
||
72 | public function index($columns, $name = null, $length = null) |
||
76 | |||
77 | /** |
||
78 | * Determine if the given table exists. |
||
79 | * |
||
80 | * @param string $table |
||
81 | * |
||
82 | * @return bool |
||
83 | */ |
||
84 | public function hasForeign($table, $foreign) |
||
90 | |||
91 | /** |
||
92 | * Add a new index command to the blueprint. |
||
93 | * |
||
94 | * @param string $type |
||
95 | * @param string|array $columns |
||
96 | * @param string $index |
||
97 | * @param int $length |
||
98 | * @return \Illuminate\Support\Fluent |
||
99 | */ |
||
100 | protected function indexCommand($type, $columns, $index, $length = null) |
||
110 | |||
111 | } |