hasTable('ratelimit_entries'); if (!$hasTable) { $table = $schema->createTable('ratelimit_entries'); $table->addColumn('id', Types::BIGINT, [ 'autoincrement' => true, 'notnull' => true, ]); $table->addColumn('hash', Types::STRING, [ 'notnull' => true, 'length' => 128, ]); $table->addColumn('delete_after', Types::DATETIME, [ 'notnull' => true, ]); $table->setPrimaryKey(['id']); $table->addIndex(['hash'], 'ratelimit_hash'); $table->addIndex(['delete_after'], 'ratelimit_delete_after'); return $schema; } return null; } }