1 | <?php namespace jlourenco\support\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() |
||
34 | |||
35 | public function creationRelation() |
||
44 | |||
45 | /** |
||
46 | * Create a new 'set' column on the table. |
||
47 | * |
||
48 | * @param string $column |
||
49 | * @param array $allowed |
||
50 | * @return \Illuminate\Support\Fluent |
||
51 | */ |
||
52 | public function set($column, array $allowed) |
||
56 | |||
57 | /** |
||
58 | * Specify a unique index for the table. |
||
59 | * |
||
60 | * @param string|array $columns |
||
61 | * @param string $name |
||
62 | * @param int $length |
||
63 | * @return \Illuminate\Support\Fluent |
||
64 | */ |
||
65 | public function unique($columns, $name = null, $length = null) |
||
69 | |||
70 | /** |
||
71 | * Specify an index for the table. |
||
72 | * |
||
73 | * @param string|array $columns |
||
74 | * @param string $name |
||
75 | * @param int $length |
||
76 | * @return \Illuminate\Support\Fluent |
||
77 | */ |
||
78 | public function index($columns, $name = null, $length = null) |
||
82 | |||
83 | /** |
||
84 | * Determine if the given table exists. |
||
85 | * |
||
86 | * @param string $table |
||
87 | * |
||
88 | * @return bool |
||
89 | */ |
||
90 | public function hasForeign($table, $foreign) |
||
96 | |||
97 | /** |
||
98 | * Add a new index command to the blueprint. |
||
99 | * |
||
100 | * @param string $type |
||
101 | * @param string|array $columns |
||
102 | * @param string $index |
||
103 | * @param int $length |
||
104 | * @return \Illuminate\Support\Fluent |
||
105 | */ |
||
106 | protected function indexCommand($type, $columns, $index, $length = null) |
||
116 | |||
117 | } |