File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 4
4
5
5
// Datatype for primary keys of your models.
6
6
// used in migrations only
7
- 'primary_keys_type ' => 'string ' , // 'string' or 'integer'
7
+ 'primary_keys_type ' => 'integer ' , // 'string' or 'integer'
8
8
9
9
// Value of are passed through this before save of tags
10
10
'normalizer ' => '\Conner\Tagging\TaggingUtil::slug ' ,
Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ class CreateTaggedTable extends Migration {
8
8
public function up () {
9
9
Schema::create ('tagging_tagged ' , function (Blueprint $ table ) {
10
10
$ table ->increments ('id ' );
11
- if (\Config::get ('tagging.primary_keys_type ' ) == 'integer ' ) {
12
- $ table ->integer ('taggable_id ' )->unsigned ()->index ();
13
- } else {
11
+ if (\Config::get ('tagging.primary_keys_type ' ) == 'string ' ) {
14
12
$ table ->string ('taggable_id ' , 36 )->index ();
13
+ } else {
14
+ $ table ->integer ('taggable_id ' )->unsigned ()->index ();
15
15
}
16
16
$ table ->string ('taggable_type ' , 255 )->index ();
17
17
$ table ->string ('tag_name ' , 255 );
You can’t perform that action at this time.
0 commit comments