blob: 9879d678eb9aded201d195d8385750f8ce87d02e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AlterLinkClicksToInteger extends Migration
{
/**
* Run the migrations.
* Changes the "clicks" field in the link table to
* an integer field rather than a string field.
*
* @return void
*/
public function up()
{
Schema::table('links', function (Blueprint $table)
{
$table->integer('clicks')->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('links', function (Blueprint $table)
{
$table->string('clicks')->change();
});
}
}
|