Fix column size to work with Oracle. Add unit tests

Signed-off-by: Vitor Mattos <vitor@php.rio>
This commit is contained in:
Vitor Mattos 2022-01-11 13:31:32 -03:00
parent b6d9e0542d
commit 9a2736bbc9
No known key found for this signature in database
GPG key ID: B7AB4B76A7CA7318

View file

@ -71,19 +71,19 @@ class Version24000Date20211222112246 extends SimpleMigrationStep {
'length' => 11,
'unsigned' => true,
]);
$table->addColumn('actor_type', 'string', [
$table->addColumn('actor_type', Types::STRING, [
'notnull' => true,
'length' => 64,
'default' => '',
]);
$table->addColumn('actor_id', 'string', [
$table->addColumn('actor_id', Types::STRING, [
'notnull' => true,
'length' => 255,
'length' => 64,
'default' => '',
]);
$table->addColumn('reaction', Types::STRING, [
'notnull' => true,
'length' => 2,
'length' => 32,
]);
$table->setPrimaryKey(['id']);
$table->addIndex(['reaction'], 'comment_reaction');