Skip to content

Commit ec3b92d

Browse files
Change in README file for numeric data type usage tutorial
1 parent bd6715e commit ec3b92d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

+21
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,24 @@ The file is usualy found in `/etc/freetds/freetds.conf`. Set the configuration a
5959
[global]
6060
# TDS protocol version
6161
tds version = 5.0
62+
63+
### Setting to use numeric data type
64+
In the migration file you must replace include `use Illuminate\Database\Schema\Blueprint;` with include `use Uepg\LaravelSybase\Database\Schema\BlueprintSybase as Blueprint;`
65+
66+
Example:
67+
```php
68+
use Illuminate\Database\Migrations\Migration;
69+
//use Illuminate\Database\Schema\Blueprint;
70+
use Uepg\LaravelSybase\Database\Schema\BlueprintSybase as Blueprint;
71+
72+
class CreateTable extends Migration
73+
{
74+
public function up()
75+
{
76+
Schema::create('table_name', function (Blueprint $table) {
77+
$table->numeric('column_name', length, autoIncrement);
78+
});
79+
}
80+
}
81+
82+
```

0 commit comments

Comments
 (0)