Hello everyone, I would like to add a new attribute to the oc_deck_cards table in the Deck app.
I get the error message:
In MigrationService.php line 370:
The version Version_AddMilestoneToDeckCards is unknown.
migrations:execute <application> <version>
My migration file (/lib/Migration/Version_AddMilestoneToDeckCards.php) looks like this:
use OCP\DB\ISchemaWrapper;
use OCP\Migration\SimpleMigrationStep;
use OCP\Migration\IOutput;
class Version_AddMilestoneToDeckCards extends SimpleMigrationStep {
public function changeSchema(IOutput $output, ISchemaWrapper $schema, array $options) {
// Retrieve the āoc_deck_cardsā table
$table = $schema->getTable(āoc_deck_cardsā);
// Add a new column āmilestoneā of type āvarchar(255)ā to the table
$table->addColumn(āmilestoneā, āstringā, [
ālengthā => 255,
ānotnullā => false, // Optional field
]);
// Return of the changed schema
return $schema;
}
}
Can anyone help me?