This commit is contained in:
2021-03-20 16:51:17 -03:00
parent 845077d2a0
commit 53a519ffbd
7 changed files with 175 additions and 8 deletions

View File

@ -20,19 +20,13 @@ final class CreateSources extends AbstractMigration
{
$this->table('sources', [
'id' => false,
'primary_key' => ['id'],
'primary_key' => ['currency_id', 'url'],
'engine' => 'InnoDB',
'encoding' => 'utf8mb4',
'collation' => 'utf8mb4_general_ci',
'comment' => '',
'row_format' => 'DYNAMIC',
])
->addColumn('id', 'integer', [
'null' => false,
'limit' => '10',
'signed' => false,
'identity' => 'enable',
])
->addColumn('currency_id', 'integer', [
'null' => false,
'limit' => '10',