hasTable('flood_protections'); if (!$exists) { $table = $this->table('flood_protections', [ 'signed' => false, 'collation' => 'utf8mb4_unicode_ci', ]); $table ->addColumn('remote_ip', 'string', [ 'null' => false, 'length' => 45, ]) ->addColumn('request_action', 'string', [ 'null' => false, 'length' => 191, ]) ->addColumn('expiration', 'integer', [ 'null' => false, 'signed' => false, 'length' => 10, ]) ->addIndex('remote_ip') ->addIndex('request_action') ->addIndex('expiration'); $table->create(); } } }