add database table recent station
This commit is contained in:
parent
199a478706
commit
4926be0afa
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user