Skip to content

Commit f19cbc6

Browse files
committed
remove deprecated type num
1 parent 229d8c2 commit f19cbc6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Migrations/Bootstrap.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ public function migrate(Contracts\Manager $manager)
1616
$schema = $manager->getSchema();
1717

1818
$schema->createSpace('sequence');
19-
$schema->createIndex('sequence', 'id', ['parts' => [1, 'NUM']]);
20-
$schema->createIndex('sequence', 'space', ['parts' => [2, 'NUM']]);
19+
$schema->createIndex('sequence', 'id', ['parts' => [1, 'UNSIGNED']]);
20+
$schema->createIndex('sequence', 'space', ['parts' => [2, 'UNSIGNED']]);
2121

2222
$schema->createSpace('property');
23-
$schema->createIndex('property', 'id', ['parts' => [1, 'NUM']]);
24-
$schema->createIndex('property', 'space', ['parts' => [2, 'NUM'], 'unique' => false]);
25-
$schema->createIndex('property', 'index_space', ['parts' => [3, 'NUM', 2, 'NUM']]);
23+
$schema->createIndex('property', 'id', ['parts' => [1, 'UNSIGNED']]);
24+
$schema->createIndex('property', 'space', ['parts' => [2, 'UNSIGNED'], 'unique' => false]);
25+
$schema->createIndex('property', 'index_space', ['parts' => [3, 'UNSIGNED', 2, 'UNSIGNED']]);
2626
$schema->createIndex('property', 'type', ['parts' => [5, 'STR'], 'unique' => false]);
2727

2828
$client = $manager->getClient();

src/Schema/Convention.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function getTarantoolType($type)
2424
return 'STR';
2525
}
2626

27-
return 'NUM';
27+
return 'UNSIGNED';
2828
}
2929

3030
public function isPrimitive($type)

0 commit comments

Comments
 (0)