@@ -25,10 +25,6 @@ public function __construct(
25
25
) {
26
26
}
27
27
28
- /**
29
- * @param AbstractSchemaManager<AbstractPlatform> $schemaManager
30
- * @return Schema
31
- */
32
28
public function buildSchema (Connection $ connection ): Schema
33
29
{
34
30
return DbalSchemaFactory::createSchemaWithTables ($ connection , [
@@ -49,7 +45,7 @@ private function createNodeTable(AbstractPlatform $platform): Table
49
45
DbalSchemaFactory::columnForDimensionSpacePointHash ('origindimensionspacepointhash ' , $ platform )->setNotnull (false ),
50
46
DbalSchemaFactory::columnForNodeTypeName ('nodetypename ' , $ platform ),
51
47
(new Column ('name ' , self ::type (Types::STRING )))->setLength (255 )->setNotnull (false ),
52
- ( new Column ( 'properties ' , self :: type (Types:: JSON )) )->setNotnull (true ),
48
+ DbalSchemaFactory:: columnForProperties ( 'properties ' , $ platform )->setNotnull (true ),
53
49
(new Column ('classification ' , self ::type (Types::BINARY )))->setLength (20 )->setNotnull (true ),
54
50
(new Column ('created ' , self ::type (Types::DATETIME_IMMUTABLE )))->setDefault ('CURRENT_TIMESTAMP ' )->setNotnull (true ),
55
51
(new Column ('originalcreated ' , self ::type (Types::DATETIME_IMMUTABLE )))->setDefault ('CURRENT_TIMESTAMP ' )->setNotnull (true ),
@@ -100,7 +96,7 @@ private function createReferenceRelationTable(AbstractPlatform $platform): Table
100
96
(new Column ('name ' , self ::type (Types::STRING )))->setLength (255 )->setNotnull (true ),
101
97
(new Column ('position ' , self ::type (Types::INTEGER )))->setNotnull (true ),
102
98
DbalSchemaFactory::columnForNodeAnchorPoint ('nodeanchorpoint ' , $ platform ),
103
- ( new Column ( 'properties ' , self :: type (Types:: JSON )) )->setNotnull (false ),
99
+ DbalSchemaFactory:: columnForProperties ( 'properties ' , $ platform )->setNotnull (false ),
104
100
DbalSchemaFactory::columnForNodeAggregateId ('destinationnodeaggregateid ' , $ platform )->setNotnull (true )
105
101
]);
106
102
0 commit comments