skipAssertion(fn (Schema $schema) => $schema->getTable($this->getPrefixedTableName(self::TABLE_NAME))->hasColumn(self::COLUMN_NAME), sprintf('Column %s already exists in table %s', self::COLUMN_NAME, $this->getPrefixedTableName(self::TABLE_NAME)) ); } public function up(Schema $schema): void { $table = $schema->getTable($this->getPrefixedTableName(self::TABLE_NAME)); $table->addColumn(self::COLUMN_NAME, Types::STRING, ['default' => 'html', 'length' => 10]); } public function down(Schema $schema): void { $schema->getTable($this->getPrefixedTableName(self::TABLE_NAME))->dropColumn(self::COLUMN_NAME); } }