@@ -50,19 +50,20 @@ public function __construct(
5050 * @return null|ISchemaWrapper
5151 */
5252 public function changeSchema (IOutput $ output , Closure $ schemaClosure , array $ options ): ?ISchemaWrapper {
53- /** @var ISchemaWrapper $schema */
54- $ schema = $ schemaClosure ();
55- $ metadataTable = $ schema ->getTable ('file_metadata ' );
53+ // / ** @var ISchemaWrapper $schema */
54+ // $schema = $schemaClosure();
55+ // $metadataTable = $schema->getTable('file_metadata');
5656
57- if ($ metadataTable ->hasColumn ('value ' )) {
58- return null ;
59- }
57+ // if ($metadataTable->hasColumn('value')) {
58+ // return null;
59+ // }
6060
61- $ metadataTable ->addColumn ('value ' , Types::TEXT , [
62- 'notnull ' => false ,
63- 'default ' => '' ,
64- ]);
65- return $ schema ;
61+ // $metadataTable->addColumn('value', Types::TEXT, [
62+ // 'notnull' => false,
63+ // 'default' => '',
64+ // ]);
65+ // return $schema;
66+ return null ;
6667 }
6768
6869
@@ -74,17 +75,17 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
7475 */
7576 public function postSchemaChange (IOutput $ output , Closure $ schemaClosure , array $ options ) {
7677 /** @var ISchemaWrapper $schema */
77- $ schema = $ schemaClosure ();
78- $ metadataTable = $ schema ->getTable ('file_metadata ' );
78+ // $schema = $schemaClosure();
79+ // $metadataTable = $schema->getTable('file_metadata');
7980
80- if (!$ metadataTable ->hasColumn ('metadata ' )) {
81- return ;
82- }
81+ // if (!$metadataTable->hasColumn('metadata')) {
82+ // return;
83+ // }
8384
84- $ this ->connection
85- ->getQueryBuilder ()
86- ->update ('file_metadata ' )
87- ->set ('value ' , 'metadata ' )
88- ->executeStatement ();
85+ // $this->connection
86+ // ->getQueryBuilder()
87+ // ->update('file_metadata')
88+ // ->set('value', 'metadata')
89+ // ->executeStatement();
8990 }
9091}
0 commit comments