add database table recent station

This commit is contained in:
Jonas Heinrich 2020-11-09 11:11:30 +01:00
parent 199a478706
commit 4926be0afa

View File

@ -42,6 +42,29 @@ class Version000000Date20181013124731 extends SimpleMigrationStep {
$table->setPrimaryKey(['id']);
$table->addIndex(['user_id'], 'favorites_user_id_index');
}
if (!$schema->hasTable('recent')) {
$table = $schema->createTable('recent');
$table->addColumn('id', 'integer', [
'autoincrement' => true,
'notnull' => true,
]);
$table->addColumn('stationuuid', 'string', [
'notnull' => true,
]);
$table->addColumn('user_id', 'string', [
'notnull' => true,
]);
$table->addColumn('name', 'text', [
'notnull' => true,
]);
$table->addColumn('favicon', 'text');
$table->addColumn('urlresolved', 'text');
$table->setPrimaryKey(['id']);
$table->addIndex(['user_id'], 'favorites_user_id_index');
}
return $schema;
}
}